From d2354aa04d7b8594be290fa1b9e35f91c4a3985c Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 21 Jun 2021 11:43:14 +0300 Subject: [PATCH] mfplay: Set start/stop position on source nodes. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/mfplay/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/mfplay/player.c b/dlls/mfplay/player.c index 0e41656f0c8..959cf701b99 100644 --- a/dlls/mfplay/player.c +++ b/dlls/mfplay/player.c @@ -1128,6 +1128,10 @@ static HRESULT media_item_create_source_node(struct media_item *item, IMFStreamD IMFTopologyNode_SetUnknown(*node, &MF_TOPONODE_SOURCE, (IUnknown *)item->source); IMFTopologyNode_SetUnknown(*node, &MF_TOPONODE_PRESENTATION_DESCRIPTOR, (IUnknown *)item->pd); IMFTopologyNode_SetUnknown(*node, &MF_TOPONODE_STREAM_DESCRIPTOR, (IUnknown *)sd); + if (item->start_position) + IMFTopologyNode_SetUINT64(*node, &MF_TOPONODE_MEDIASTART, item->start_position); + if (item->stop_position) + IMFTopologyNode_SetUINT64(*node, &MF_TOPONODE_MEDIASTOP, item->stop_position); } return hr;