evr/allocator: Call user callback when sample is returned to the pool.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
03a10db214
commit
2192d0146a
|
@ -815,6 +815,9 @@ static HRESULT WINAPI sample_allocator_tracking_callback_Invoke(IMFAsyncCallback
|
||||||
|
|
||||||
IUnknown_Release(sample);
|
IUnknown_Release(sample);
|
||||||
|
|
||||||
|
if (allocator->callback)
|
||||||
|
IMFVideoSampleAllocatorNotify_NotifyRelease(allocator->callback);
|
||||||
|
|
||||||
LeaveCriticalSection(&allocator->cs);
|
LeaveCriticalSection(&allocator->cs);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
Loading…
Reference in New Issue