Nikolay Sivov : mf/evr: Notify presenter on new input.

Alexandre Julliard julliard at winehq.org
Fri Oct 30 16:18:45 CDT 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Oct 30 16:50:47 2020 +0300

mf/evr: Notify presenter on new input.

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

---

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

diff --git a/dlls/mf/evr.c b/dlls/mf/evr.c
index 618bbf8924f..f5bbfffc4a5 100644
--- a/dlls/mf/evr.c
+++ b/dlls/mf/evr.c
@@ -352,7 +352,8 @@ static HRESULT WINAPI video_stream_sink_ProcessSample(IMFStreamSink *iface, IMFS
     }
     else if (stream->parent->state == EVR_STATE_RUNNING)
     {
-        IMFTransform_ProcessInput(stream->parent->mixer, stream->id, sample, 0);
+        if (SUCCEEDED(IMFTransform_ProcessInput(stream->parent->mixer, stream->id, sample, 0)))
+            IMFVideoPresenter_ProcessMessage(stream->parent->presenter, MFVP_MESSAGE_PROCESSINPUTNOTIFY, 0);
 
         if (stream->flags & EVR_STREAM_PREROLLING)
         {




More information about the wine-cvs mailing list