mf: Allow restarting from paused 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-02-28 15:01:03 +03:00 committed by Alexandre Julliard
parent 43fd6bd94a
commit d4cc70e1b6
1 changed files with 1 additions and 0 deletions

View File

@ -614,6 +614,7 @@ static void session_start(struct media_session *session, const GUID *time_format
switch (session->state) switch (session->state)
{ {
case SESSION_STATE_STOPPED: case SESSION_STATE_STOPPED:
case SESSION_STATE_PAUSED:
session->presentation.time_format = *time_format; session->presentation.time_format = *time_format;
session->presentation.start_position.vt = VT_EMPTY; session->presentation.start_position.vt = VT_EMPTY;