Nikolay Sivov : mf: Correctly respond to start attempt from closed state.

Alexandre Julliard julliard at winehq.org
Tue Mar 3 16:24:53 CST 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Mar  3 12:24:59 2020 +0300

mf: Correctly respond to start attempt from closed state.

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 c5235e42a8..779a10d08d 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -646,6 +646,10 @@ static void session_start(struct media_session *session, const GUID *time_format
         case SESSION_STATE_RUNNING:
             FIXME("Seeking is not implemented.\n");
             break;
+        case SESSION_STATE_CLOSED:
+            IMFMediaEventQueue_QueueEventParamVar(session->event_queue, MESessionStarted, &GUID_NULL,
+                    MF_E_INVALIDREQUEST, NULL);
+            break;
         default:
             ;
     }




More information about the wine-cvs mailing list