Maarten Lankhorst : quartz: Unset time in dsoundrender if it cannot be obtained.

Alexandre Julliard julliard at winehq.org
Mon Nov 29 13:38:41 CST 2010


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Mon Nov 29 10:44:13 2010 +0100

quartz: Unset time in dsoundrender if it cannot be obtained.

---

 dlls/quartz/dsoundrender.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 759ba07..bb7fc2d 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -342,8 +342,10 @@ static HRESULT WINAPI DSoundRender_Receive(BaseInputPin *pin, IMediaSample * pSa
     if (IMediaSample_GetMediaTime(pSample, &tStart, &tStop) == S_OK)
         MediaSeekingPassThru_RegisterMediaTime(This->seekthru_unk, tStart);
     hr = IMediaSample_GetTime(pSample, &tStart, &tStop);
-    if (FAILED(hr))
+    if (FAILED(hr)) {
         ERR("Cannot get sample time (%x)\n", hr);
+        tStart = tStop = -1;
+    }
 
     IMediaSample_IsDiscontinuity(pSample);
 




More information about the wine-cvs mailing list