Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9deecdf8
Commit
9deecdf8
authored
Mar 05, 2014
by
Andrey Myznikov
Committed by
Michael Niedermayer
Mar 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pthread-related compile errors in iec61883.c
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
91550f46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
iec61883.c
libavdevice/iec61883.c
+5
-5
No files found.
libavdevice/iec61883.c
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment