Nikolay Sivov : evr/mixer: Ignore draining command.

Alexandre Julliard julliard at winehq.org
Wed Oct 21 15:15:13 CDT 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Oct 21 09:46:31 2020 +0300

evr/mixer: Ignore draining command.

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

---

 dlls/evr/mixer.c     | 4 ++++
 dlls/evr/tests/evr.c | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/dlls/evr/mixer.c b/dlls/evr/mixer.c
index 1b77afac5b2..28361255fe1 100644
--- a/dlls/evr/mixer.c
+++ b/dlls/evr/mixer.c
@@ -965,6 +965,10 @@ static HRESULT WINAPI video_mixer_transform_ProcessMessage(IMFTransform *iface,
             LeaveCriticalSection(&mixer->cs);
 
             break;
+
+        case MFT_MESSAGE_COMMAND_DRAIN:
+            break;
+
         default:
             WARN("Message not handled %d.\n", message);
             hr = E_NOTIMPL;
diff --git a/dlls/evr/tests/evr.c b/dlls/evr/tests/evr.c
index 182280d0a39..d71a63ff602 100644
--- a/dlls/evr/tests/evr.c
+++ b/dlls/evr/tests/evr.c
@@ -2171,6 +2171,9 @@ todo_wine
     hr = IMFTransform_ProcessInput(mixer, 5, sample, 0);
     ok(hr == MF_E_INVALIDSTREAMNUMBER, "Unexpected hr %#x.\n", hr);
 
+    hr = IMFTransform_ProcessMessage(mixer, MFT_MESSAGE_COMMAND_DRAIN, 0);
+    ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
+
     IMFSample_Release(sample);
 
     IDirect3DSurface9_Release(surface);




More information about the wine-cvs mailing list