mf: Correctly respond to start attempt from closed state.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-03-03 12:24:59 +03:00 committed by Alexandre Julliard
parent 15a9ab9409
commit 23012b1304
1 changed files with 4 additions and 0 deletions

View File

@ -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:
;
}