Commit 6a68e345 authored by Giovanni Mascellani's avatar Giovanni Mascellani Committed by Alexandre Julliard

mf/session: Reset END_OF_PRESENTATION flags when stopped.

parent 0b774df3
......@@ -943,6 +943,17 @@ static void session_pause(struct media_session *session)
session_set_paused(session, hr);
}
static void session_clear_end_of_presentation(struct media_session *session)
{
struct media_source *source;
session->presentation.flags &= ~SESSION_FLAG_END_OF_PRESENTATION;
LIST_FOR_EACH_ENTRY(source, &session->presentation.sources, struct media_source, entry)
{
source->flags &= ~SOURCE_FLAG_END_OF_PRESENTATION;
}
}
static void session_set_stopped(struct media_session *session, HRESULT status)
{
MediaEventType event_type;
......@@ -957,6 +968,7 @@ static void session_set_stopped(struct media_session *session, HRESULT status)
IMFMediaEventQueue_QueueEvent(session->event_queue, event);
IMFMediaEvent_Release(event);
}
session_clear_end_of_presentation(session);
session_command_complete(session);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment