From f0ebd661891e1fbf535730c7123b77055e532814 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 15 Jun 2021 12:00:13 +0300 Subject: [PATCH] mf/session: Reset per-node end of stream flags when stopped. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/mf/session.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/mf/session.c b/dlls/mf/session.c index a7f58e0fb29..21afbcfc5d8 100644 --- a/dlls/mf/session.c +++ b/dlls/mf/session.c @@ -946,12 +946,17 @@ static void session_pause(struct media_session *session) static void session_clear_end_of_presentation(struct media_session *session) { struct media_source *source; + struct topo_node *node; 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; } + LIST_FOR_EACH_ENTRY(node, &session->presentation.nodes, struct topo_node, entry) + { + node->flags &= ~TOPO_NODE_END_OF_STREAM; + } } static void session_set_stopped(struct media_session *session, HRESULT status)