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
7c453277
Commit
7c453277
authored
Jun 07, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/iec61883: Check pthread init for failures
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ddda9cee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
iec61883.c
libavdevice/iec61883.c
+6
-3
No files found.
libavdevice/iec61883.c
View file @
7c453277
...
...
@@ -392,9 +392,12 @@ static int iec61883_read_header(AVFormatContext *context)
#if THREADS
dv
->
thread_loop
=
1
;
pthread_mutex_init
(
&
dv
->
mutex
,
NULL
);
pthread_cond_init
(
&
dv
->
cond
,
NULL
);
pthread_create
(
&
dv
->
receive_task_thread
,
NULL
,
iec61883_receive_task
,
dv
);
if
(
pthread_mutex_init
(
&
dv
->
mutex
,
NULL
))
goto
fail
;
if
(
pthread_cond_init
(
&
dv
->
cond
,
NULL
))
goto
fail
;
if
(
pthread_create
(
&
dv
->
receive_task_thread
,
NULL
,
iec61883_receive_task
,
dv
))
goto
fail
;
#endif
return
0
;
...
...
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