[PATCH 5/5] evr/allocator: Call user callback when sample is returned to the pool.

Nikolay Sivov nsivov at codeweavers.com
Tue Nov 10 04:07:22 CST 2020


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 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;
-- 
2.28.0




More information about the wine-devel mailing list