Nikolay Sivov : mf: Subscribe for next pipeline object event after processing current one.
Alexandre Julliard
julliard at winehq.org
Fri Feb 28 13:54:40 CST 2020
Module: wine
Branch: master
Commit: 9d004b84663f7e8bcc1b966ba656d8f35bec09db
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9d004b84663f7e8bcc1b966ba656d8f35bec09db
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Feb 28 15:00:53 2020 +0300
mf: Subscribe for next pipeline object event after processing current one.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mf/session.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/mf/session.c b/dlls/mf/session.c
index 2ef4b01028..6da495e3c1 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -1416,6 +1416,10 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
failed:
if (event)
IMFMediaEvent_Release(event);
+
+ if (FAILED(hr = IMFMediaEventGenerator_BeginGetEvent(event_source, iface, (IUnknown *)event_source)))
+ WARN("Failed to re-subscribe, hr %#x.\n", hr);
+
IMFMediaEventGenerator_Release(event_source);
return hr;
More information about the wine-cvs
mailing list