Maarten Lankhorst : quartz: Use media time instead of stream time in video renderer.

Alexandre Julliard julliard at winehq.org
Wed Nov 10 11:09:37 CST 2010


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Tue Nov  9 23:42:39 2010 +0100

quartz: Use media time instead of stream time in video renderer.

---

 dlls/quartz/videorenderer.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c
index e135fb9..871b71d 100644
--- a/dlls/quartz/videorenderer.c
+++ b/dlls/quartz/videorenderer.c
@@ -380,11 +380,12 @@ static HRESULT WINAPI VideoRenderer_Receive(BaseInputPin* pin, IMediaSample * pS
         return VFW_E_WRONG_STATE;
     }
 
+    if (IMediaSample_GetMediaTime(pSample, &tStart, &tStop) == S_OK)
+        MediaSeekingPassThru_RegisterMediaTime(This->seekthru_unk, tStart);
+
     hr = IMediaSample_GetTime(pSample, &tStart, &tStop);
     if (FAILED(hr))
         ERR("Cannot get sample time (%x)\n", hr);
-    else
-        MediaSeekingPassThru_RegisterMediaTime(This->seekthru_unk, tStart);
 
     if (This->rtLastStop != tStart && This->filter.state == State_Running)
     {




More information about the wine-cvs mailing list