winegstreamer: Hold the streaming lock while destroying wg_transform.

Otherwise, the streaming thread might try to access it while it's being destroyed.
This commit is contained in:
Anton Baskanov 2022-10-29 18:28:25 +07:00 committed by Alexandre Julliard
parent 4ae5d81932
commit b89a01bff8

View file

@ -129,7 +129,9 @@ static HRESULT transform_cleanup_stream(struct strmbase_filter *iface)
{
IMemAllocator_Decommit(filter->source.pAllocator);
EnterCriticalSection(&filter->filter.stream_cs);
wg_transform_destroy(filter->transform);
LeaveCriticalSection(&filter->filter.stream_cs);
}
return S_OK;