1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

pthread: check pthread_create() return value.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-27 06:17:03 +01:00
parent 2bb79b23fe
commit 47044625ba

View File

@ -766,6 +766,8 @@ static int frame_thread_init(AVCodecContext *avctx)
if (err) goto error;
p->thread_created= !pthread_create(&p->thread, NULL, frame_worker_thread, p);
if(!p->thread_created)
goto error;
}
return 0;