mfreadwrite/reader: Improve decoder output samples handling.

Equivalent of 706fd3dcce, but for the reader.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-04-02 21:35:00 +03:00 committed by Alexandre Julliard
parent 1f49903e66
commit b50b65ab93
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ static HRESULT source_reader_pull_stream_samples(struct source_reader *reader, s
{
memset(&out_buffer, 0, sizeof(out_buffer));
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 = MFCreateSample(&out_buffer.pSample)))
break;