Nikolay Sivov : mfreadwrite/reader: Improve decoder output samples handling.

Alexandre Julliard julliard at winehq.org
Fri Apr 2 16:10:12 CDT 2021


Module: wine
Branch: master
Commit: b50b65ab9360c9bd17d51425b93ac84559a43841
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b50b65ab9360c9bd17d51425b93ac84559a43841

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Apr  2 21:35:00 2021 +0300

mfreadwrite/reader: Improve decoder output samples handling.

Equivalent of 706fd3dcce52c0deec7c98143d715a1d9016d3ad, but for the reader.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfreadwrite/reader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mfreadwrite/reader.c b/dlls/mfreadwrite/reader.c
index d3df7abd9fc..ffe91f5d265 100644
--- a/dlls/mfreadwrite/reader.c
+++ b/dlls/mfreadwrite/reader.c
@@ -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;




More information about the wine-cvs mailing list