mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
avdevice/iec61883: Check pthread init for failures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ddda9cee1c
commit
7c453277a3
@ -392,9 +392,12 @@ static int iec61883_read_header(AVFormatContext *context)
|
|||||||
|
|
||||||
#if THREADS
|
#if THREADS
|
||||||
dv->thread_loop = 1;
|
dv->thread_loop = 1;
|
||||||
pthread_mutex_init(&dv->mutex, NULL);
|
if (pthread_mutex_init(&dv->mutex, NULL))
|
||||||
pthread_cond_init(&dv->cond, NULL);
|
goto fail;
|
||||||
pthread_create(&dv->receive_task_thread, NULL, iec61883_receive_task, dv);
|
if (pthread_cond_init(&dv->cond, NULL))
|
||||||
|
goto fail;
|
||||||
|
if (pthread_create(&dv->receive_task_thread, NULL, iec61883_receive_task, dv))
|
||||||
|
goto fail;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user