Commit b89a01bf authored by Anton Baskanov's avatar Anton Baskanov Committed by Alexandre Julliard

winegstreamer: Hold the streaming lock while destroying wg_transform.

Otherwise, the streaming thread might try to access it while it's being destroyed.
parent 4ae5d819
...@@ -129,7 +129,9 @@ static HRESULT transform_cleanup_stream(struct strmbase_filter *iface) ...@@ -129,7 +129,9 @@ static HRESULT transform_cleanup_stream(struct strmbase_filter *iface)
{ {
IMemAllocator_Decommit(filter->source.pAllocator); IMemAllocator_Decommit(filter->source.pAllocator);
EnterCriticalSection(&filter->filter.stream_cs);
wg_transform_destroy(filter->transform); wg_transform_destroy(filter->transform);
LeaveCriticalSection(&filter->filter.stream_cs);
} }
return S_OK; return S_OK;
......
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