On Wed, Jun 8, 2016 at 8:57 AM, Денис Кулаков <kudesnik3...@gmail.com> wrote:
> In dxva2 code there is bug with context_mutex usage -
> if ID3D11VideoContext_DecoderBeginFrame return E_PENDING -
> WaitForSingleObjectEx(context_mutex) will be called again, but each call to
> it must have corresponding ReleaseMutex, otherwise it will not be released
> - so after E_PENDING context mutex will never be released.

You are correct, the should not be in the while, or we should release
the lock when we loop again, so that another thread has a chance to do
something with the video_context.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to