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:
Nikolay Sivov 2020-11-10 13:07:22 +03:00 committed by Alexandre Julliard
parent 03a10db214
commit 2192d0146a
1 changed files with 3 additions and 0 deletions

View File

@ -815,6 +815,9 @@ static HRESULT WINAPI sample_allocator_tracking_callback_Invoke(IMFAsyncCallback
IUnknown_Release(sample);
if (allocator->callback)
IMFVideoSampleAllocatorNotify_NotifyRelease(allocator->callback);
LeaveCriticalSection(&allocator->cs);
return S_OK;