Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
9deecdf8
Commit
9deecdf8
authored
11 years ago
by
Andrey Myznikov
Committed by
Michael Niedermayer
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix pthread-related compile errors in iec61883.c
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
91550f46
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavdevice/iec61883.c
+5
-5
5 additions, 5 deletions
libavdevice/iec61883.c
with
5 additions
and
5 deletions
libavdevice/iec61883.c
+
5
−
5
View file @
9deecdf8
...
...
@@ -102,7 +102,7 @@ static int iec61883_callback(unsigned char *data, int length,
DVPacket
*
packet
;
int
ret
;
#if
def
THREADS
#if THREADS
pthread_mutex_lock
(
&
dv
->
mutex
);
#endif
...
...
@@ -139,7 +139,7 @@ static int iec61883_callback(unsigned char *data, int length,
ret
=
0
;
exit:
#if
def
THREADS
#if THREADS
pthread_cond_broadcast
(
&
dv
->
cond
);
pthread_mutex_unlock
(
&
dv
->
mutex
);
#endif
...
...
@@ -151,7 +151,7 @@ static void *iec61883_receive_task(void *opaque)
struct
iec61883_data
*
dv
=
(
struct
iec61883_data
*
)
opaque
;
int
result
;
#if
def
THREADS
#if THREADS
while
(
dv
->
thread_loop
)
#endif
{
...
...
@@ -168,7 +168,7 @@ static void *iec61883_receive_task(void *opaque)
raw1394_loop_iterate
(
dv
->
raw1394
);
}
else
if
(
dv
->
receiving
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"No more input data available
\n
"
);
#if
def
THREADS
#if THREADS
pthread_mutex_lock
(
&
dv
->
mutex
);
dv
->
eof
=
1
;
pthread_cond_broadcast
(
&
dv
->
cond
);
...
...
@@ -413,7 +413,7 @@ static int iec61883_read_packet(AVFormatContext *context, AVPacket *pkt)
* Try to parse frames from queue
*/
#if
def
THREADS
#if THREADS
pthread_mutex_lock
(
&
dv
->
mutex
);
while
((
size
=
dv
->
parse_queue
(
dv
,
pkt
))
==
-
1
)
if
(
!
dv
->
eof
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment