Commit 757eb476 authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: fix deadlock when input is paused

cf. comment.

Fixes #19013
parent 88130eaf
......@@ -1680,7 +1680,12 @@ static void DecoderCallback(void *decompressionOutputRefCon,
/* Unlock the mutex because decoder_NewPicture() is blocking. Indeed,
* it can wait indefinitely when the input is paused. */
picture_t *p_pic = decoder_NewPicture(p_dec);
if (!p_pic)
goto end;
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