mfreadwrite/reader: Improve decoder output samples handling.
Equivalent of 706fd3dcce52c0deec7c98143d715a1d9016d3ad, 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:
parent
1f49903e66
commit
b50b65ab93
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user