quartz: Use media time instead of stream time in video renderer.

This commit is contained in:
Maarten Lankhorst 2010-11-09 23:42:39 +01:00 committed by Alexandre Julliard
parent 8363436ea8
commit adabc4ae92
1 changed files with 3 additions and 2 deletions

View File

@ -380,11 +380,12 @@ static HRESULT WINAPI VideoRenderer_Receive(BaseInputPin* pin, IMediaSample * pS
return VFW_E_WRONG_STATE;
}
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 && This->filter.state == State_Running)
{