Module: wine Branch: master Commit: 2192d0146a0a066c8d04dc4d03667b48631a754a URL: https://source.winehq.org/git/wine.git/?a=commit;h=2192d0146a0a066c8d04dc4d0...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Tue Nov 10 13:07:22 2020 +0300
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
---
dlls/evr/sample.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/evr/sample.c b/dlls/evr/sample.c index 729f279fafe..a44e3ef45c6 100644 --- a/dlls/evr/sample.c +++ b/dlls/evr/sample.c @@ -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;