From: R��mi Bernon rbernon@codeweavers.com
--- dlls/mf/session.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/dlls/mf/session.c b/dlls/mf/session.c index 2553369fb54..7ec2df96759 100644 --- a/dlls/mf/session.c +++ b/dlls/mf/session.c @@ -2374,6 +2374,13 @@ static HRESULT WINAPI session_commands_callback_Invoke(IMFAsyncCallback *iface,
EnterCriticalSection(&session->cs);
+ if (session->presentation.flags & SESSION_FLAG_END_OF_PRESENTATION) + { + WARN("session %p presentation end in progress, waiting for it to complete.\n", session); + LeaveCriticalSection(&session->cs); + return S_OK; + } + switch (op->command) { case SESSION_CMD_CLEAR_TOPOLOGIES: