[PATCH 3/4] quartz/avidec: Don't copy the media time to the output sample.

Zebediah Figura z.figura12 at gmail.com
Thu Nov 19 17:24:14 CST 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/quartz/avidec.c       | 5 -----
 dlls/quartz/tests/avidec.c | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/dlls/quartz/avidec.c b/dlls/quartz/avidec.c
index 4995276dbfc..77d2b5e2aa5 100644
--- a/dlls/quartz/avidec.c
+++ b/dlls/quartz/avidec.c
@@ -204,11 +204,6 @@ static HRESULT WINAPI avi_decompressor_sink_Receive(struct strmbase_sink *iface,
     else
         IMediaSample_SetTime(pOutSample, NULL, NULL);
 
-    if (IMediaSample_GetMediaTime(pSample, &tStart, &tStop) == S_OK)
-        IMediaSample_SetMediaTime(pOutSample, &tStart, &tStop);
-    else
-        IMediaSample_SetMediaTime(pOutSample, NULL, NULL);
-
     hr = IMemInputPin_Receive(This->source.pMemInputPin, pOutSample);
     if (hr != S_OK && hr != VFW_E_NOT_CONNECTED)
         ERR("Error sending sample (%x)\n", hr);
diff --git a/dlls/quartz/tests/avidec.c b/dlls/quartz/tests/avidec.c
index ac1e245c9e6..b9bca9b02ef 100644
--- a/dlls/quartz/tests/avidec.c
+++ b/dlls/quartz/tests/avidec.c
@@ -911,7 +911,7 @@ static HRESULT WINAPI testsink_Receive(struct strmbase_sink *iface, IMediaSample
     }
 
     hr = IMediaSample_GetMediaTime(sample, &start, &stop);
-    todo_wine ok(hr == VFW_E_MEDIA_TIME_NOT_SET, "Got hr %#x.\n", hr);
+    ok(hr == VFW_E_MEDIA_TIME_NOT_SET, "Got hr %#x.\n", hr);
     hr = IMediaSample_IsDiscontinuity(sample);
     todo_wine_if (testmode == 5) ok(hr == (testmode == 4) ? S_OK : S_FALSE, "Got hr %#x.\n", hr);
     hr = IMediaSample_IsPreroll(sample);
-- 
2.29.2




More information about the wine-devel mailing list