From 23012b1304374783bcb75a49b8b5123ab471a458 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 3 Mar 2020 12:24:59 +0300 Subject: [PATCH] mf: Correctly respond to start attempt from closed state. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/mf/session.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/mf/session.c b/dlls/mf/session.c index c5235e42a8b..779a10d08d2 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: ; }