[PATCH 2/3] mf: Raise MESessionStopped again if session is already stopped.

Nikolay Sivov nsivov at codeweavers.com
Tue Apr 14 10:03:45 CDT 2020


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/mf/session.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/mf/session.c b/dlls/mf/session.c
index 992b9a5cfb..076327920a 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -852,6 +852,9 @@ static void session_stop(struct media_session *session)
             else
                 session_set_stopped(session, hr);
 
+            break;
+        case SESSION_STATE_STOPPED:
+            IMFMediaEventQueue_QueueEventParamVar(session->event_queue, MESessionStopped, &GUID_NULL, S_OK, NULL);
             break;
         default:
             ;
-- 
2.25.1




More information about the wine-devel mailing list