Nikolay Sivov : mf/session: Forward MEReconnect* events to the application.

Alexandre Julliard julliard at winehq.org
Mon Apr 12 16:11:26 CDT 2021


Module: wine
Branch: master
Commit: 6ff7575ae81caaf87de579da57eefb34acf61eca
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6ff7575ae81caaf87de579da57eefb34acf61eca

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Apr 12 12:19:54 2021 +0300

mf/session: Forward MEReconnect* events to the application.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mf/session.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dlls/mf/session.c b/dlls/mf/session.c
index 7a8c7e9f598..6e0f65e6998 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -3233,6 +3233,15 @@ static HRESULT WINAPI session_events_callback_Invoke(IMFAsyncCallback *iface, IM
             LeaveCriticalSection(&session->cs);
             break;
 
+        case MEReconnectStart:
+        case MEReconnectEnd:
+
+            EnterCriticalSection(&session->cs);
+            if (session_get_media_source(session, (IMFMediaSource *)event_source))
+                IMFMediaEventQueue_QueueEvent(session->event_queue, event);
+            LeaveCriticalSection(&session->cs);
+            break;
+
         case MENewStream:
             stream = (IMFMediaStream *)value.punkVal;
 




More information about the wine-cvs mailing list