mf: Leave instead of enter a critical section.

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-10-20 13:20:31 +02:00 committed by Alexandre Julliard
parent bc968469f2
commit 96062c4c79

View file

@ -1040,7 +1040,7 @@ static HRESULT WINAPI sample_grabber_sink_Shutdown(IMFMediaSink *iface)
IMFStreamSink_Release(&grabber->stream->IMFStreamSink_iface);
grabber->stream = NULL;
}
EnterCriticalSection(&grabber->cs);
LeaveCriticalSection(&grabber->cs);
return hr;
}