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: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
beb7695d06
commit
fc5719e4c5
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue