[PATCH 08/10] quartz: Use media time instead of stream time in directsound renderer
Maarten Lankhorst
m.b.lankhorst at gmail.com
Sun Nov 7 08:02:52 CST 2010
---
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",
--
1.7.1
More information about the wine-patches
mailing list