mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:14:46 +00:00
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:
parent
4ae5d81932
commit
b89a01bff8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue