Commit efe0504f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winegstreamer: Leave the stream CS while waiting for a sample.

This may call AllocateForOutput/Stream callbacks, and it may block.
parent 488c9c66
......@@ -88,7 +88,9 @@ static DWORD WINAPI stream_thread(void *arg)
while (reader->running)
{
LeaveCriticalSection(&reader->stream_cs);
hr = wm_reader_get_stream_sample(&reader->reader, callback_advanced, 0, &sample, &pts, &duration, &flags, &stream_number);
EnterCriticalSection(&reader->stream_cs);
if (hr != S_OK)
break;
......
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