From 53bd62737c3f1ad1237a8c47d1319c64abc7a7b0 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Tue, 31 Jan 2012 13:52:27 -0600 Subject: [PATCH] quartz: If the MediaSeeking is not implemented all the way up the passthru chain fall back to the filtergraph's clock to find position. --- dlls/quartz/filtergraph.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c index 32aa56931ed..911e68c1f6c 100644 --- a/dlls/quartz/filtergraph.c +++ b/dlls/quartz/filtergraph.c @@ -2456,7 +2456,14 @@ static HRESULT WINAPI MediaSeeking_GetCurrentPosition(IMediaSeeking *iface, LONG *pCurrent = -1; hr = all_renderers_seek(This, FoundCurrentPosition, (DWORD_PTR)pCurrent); if (hr == E_NOTIMPL) { - *pCurrent = 0; + LONGLONG time = 0; + if (This->refClock) + { + IReferenceClock_GetTime(This->refClock, &time); + if (time) + time -= This->start_time; + } + *pCurrent = time; hr = S_OK; } LeaveCriticalSection(&This->cs); -- 2.11.4.GIT