Nikolay Sivov : mf/evr: Accept samples when prerolling.

Alexandre Julliard julliard at winehq.org
Mon Nov 9 15:11:51 CST 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Nov  9 15:02:41 2020 +0300

mf/evr: Accept samples when prerolling.

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

---

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

diff --git a/dlls/mf/evr.c b/dlls/mf/evr.c
index f5bbfffc4a5..486958f5f79 100644
--- a/dlls/mf/evr.c
+++ b/dlls/mf/evr.c
@@ -350,7 +350,7 @@ static HRESULT WINAPI video_stream_sink_ProcessSample(IMFStreamSink *iface, IMFS
     {
         WARN("No sample timestamp, hr %#x.\n", hr);
     }
-    else if (stream->parent->state == EVR_STATE_RUNNING)
+    else if (stream->parent->state == EVR_STATE_RUNNING || stream->flags & EVR_STREAM_PREROLLING)
     {
         if (SUCCEEDED(IMFTransform_ProcessInput(stream->parent->mixer, stream->id, sample, 0)))
             IMFVideoPresenter_ProcessMessage(stream->parent->presenter, MFVP_MESSAGE_PROCESSINPUTNOTIFY, 0);




More information about the wine-cvs mailing list