Nikolay Sivov : evr/allocator: Call user callback when sample is returned to the pool.
Alexandre Julliard
julliard at winehq.org
Tue Nov 10 15:30:24 CST 2020
Module: wine
Branch: master
Commit: 2192d0146a0a066c8d04dc4d03667b48631a754a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2192d0146a0a066c8d04dc4d03667b48631a754a
Author: Nikolay Sivov <nsivov at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list