Commit 53bd6273 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

quartz: If the MediaSeeking is not implemented all the way up the passthru chain…

quartz: If the MediaSeeking is not implemented all the way up the passthru chain fall back to the filtergraph's clock to find position.
parent a8a2f871
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment