mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
quartz: Use media time instead of stream time in video renderer.
This commit is contained in:
parent
8363436ea8
commit
adabc4ae92
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user