From 706fd3dcce52c0deec7c98143d715a1d9016d3ad Mon Sep 17 00:00:00 2001 From: Derek Lesho Date: Thu, 1 Apr 2021 19:26:57 +0300 Subject: [PATCH] mf/session: Prefer transform-provided sample path. Signed-off-by: Derek Lesho Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/mf/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mf/session.c b/dlls/mf/session.c index c2334f82d62..20ccdd0535e 100644 --- a/dlls/mf/session.c +++ b/dlls/mf/session.c @@ -2750,7 +2750,7 @@ static HRESULT transform_node_pull_samples(const struct media_session *session, if (FAILED(hr = IMFTransform_GetOutputStreamInfo(node->object.transform, buffers[i].dwStreamID, &stream_info))) break; - if (!(stream_info.dwFlags & MFT_OUTPUT_STREAM_PROVIDES_SAMPLES)) + if (!(stream_info.dwFlags & (MFT_OUTPUT_STREAM_PROVIDES_SAMPLES | MFT_OUTPUT_STREAM_CAN_PROVIDE_SAMPLES))) { if (FAILED(hr = transform_get_external_output_sample(session, node, i, &stream_info, &buffers[i].pSample))) break;