From: Paul Gofman pgofman@codeweavers.com
--- dlls/mf/session.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/dlls/mf/session.c b/dlls/mf/session.c index 85baf07d05a..adda37e8df7 100644 --- a/dlls/mf/session.c +++ b/dlls/mf/session.c @@ -3162,6 +3162,10 @@ static void session_deliver_sample_to_node(struct media_session *session, IMFTop switch (node_type) { case MF_TOPOLOGY_OUTPUT_NODE: + if (!sample && FAILED(hr = IMFStreamSink_PlaceMarker(topo_node->object.sink_stream, MFSTREAMSINK_MARKER_ENDOFSEGMENT, + NULL, NULL))) + WARN("Failed to place sink marker, hr %#lx.\n", hr); + if (topo_node->u.sink.requests) { if (sample) @@ -3169,11 +3173,6 @@ static void session_deliver_sample_to_node(struct media_session *session, IMFTop if (FAILED(hr = IMFStreamSink_ProcessSample(topo_node->object.sink_stream, sample))) WARN("Stream sink failed to process sample, hr %#lx.\n", hr); } - else if (FAILED(hr = IMFStreamSink_PlaceMarker(topo_node->object.sink_stream, MFSTREAMSINK_MARKER_ENDOFSEGMENT, - NULL, NULL))) - { - WARN("Failed to place sink marker, hr %#lx.\n", hr); - } topo_node->u.sink.requests--; } break;