mf/session: Treat only started/paused/stopped as valid states for start command.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-06-23 14:03:06 +03:00 committed by Alexandre Julliard
parent 5eec2141dc
commit 7dba45f6ec
1 changed files with 1 additions and 3 deletions

View File

@ -862,13 +862,11 @@ static void session_start(struct media_session *session, const GUID *time_format
FIXME("Seeking is not implemented.\n");
session_command_complete(session);
break;
case SESSION_STATE_CLOSED:
default:
IMFMediaEventQueue_QueueEventParamVar(session->event_queue, MESessionStarted, &GUID_NULL,
MF_E_INVALIDREQUEST, NULL);
session_command_complete(session);
break;
default:
;
}
}