Maarten Lankhorst : quartz: Use media time instead of stream time in directsound renderer.
Alexandre Julliard
julliard at winehq.org
Mon Nov 8 11:46:21 CST 2010
Module: wine
Branch: master
Commit: 875faa3101ac15a5e27a77783af54b8cc3fef59a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=875faa3101ac15a5e27a77783af54b8cc3fef59a
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Sun Nov 7 15:02:52 2010 +0100
quartz: Use media time instead of stream time in directsound renderer.
---
dlls/quartz/dsoundrender.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 7526e81..1001cf5 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -279,11 +279,11 @@ static HRESULT WINAPI DSoundRender_Receive(BaseInputPin *pin, IMediaSample * pSa
return hr;
}
+ 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 && (IMediaSample_IsDiscontinuity(pSample) == S_FALSE))
WARN("Unexpected discontinuity: Last: %u.%03u, tStart: %u.%03u\n",
More information about the wine-cvs
mailing list