quartz: Unset time in dsoundrender if it cannot be obtained.

This commit is contained in:
Maarten Lankhorst 2010-11-29 10:44:13 +01:00 committed by Alexandre Julliard
parent 5b40a664a9
commit f4a0ca85af
1 changed files with 3 additions and 1 deletions

View File

@ -342,8 +342,10 @@ static HRESULT WINAPI DSoundRender_Receive(BaseInputPin *pin, IMediaSample * pSa
if (IMediaSample_GetMediaTime(pSample, &tStart, &tStop) == S_OK) if (IMediaSample_GetMediaTime(pSample, &tStart, &tStop) == S_OK)
MediaSeekingPassThru_RegisterMediaTime(This->seekthru_unk, tStart); MediaSeekingPassThru_RegisterMediaTime(This->seekthru_unk, tStart);
hr = IMediaSample_GetTime(pSample, &tStart, &tStop); hr = IMediaSample_GetTime(pSample, &tStart, &tStop);
if (FAILED(hr)) if (FAILED(hr)) {
ERR("Cannot get sample time (%x)\n", hr); ERR("Cannot get sample time (%x)\n", hr);
tStart = tStop = -1;
}
IMediaSample_IsDiscontinuity(pSample); IMediaSample_IsDiscontinuity(pSample);