Commit 47044625 authored by Michael Niedermayer's avatar Michael Niedermayer

pthread: check pthread_create() return value.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2bb79b23
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment