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:
Zebediah Figura 2022-02-07 17:19:31 -06:00 committed by Alexandre Julliard
parent beb7695d06
commit fc5719e4c5
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}