Commit fc5719e4 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Release stream_cs on error in stream_thread().

This fixes a deadlock when trying to skip video in Persona 4 Golden. Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent beb7695d
......@@ -146,6 +146,7 @@ static DWORD WINAPI stream_thread(void *arg)
else if (hr != NS_E_NO_MORE_SAMPLES)
{
ERR("Failed to get sample, hr %#lx.\n", hr);
LeaveCriticalSection(&reader->stream_cs);
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