quartz: Allow stream time to go negative in sound renderer.

This commit is contained in:
Maarten Lankhorst 2010-12-01 23:17:29 +01:00 committed by Alexandre Julliard
parent 97215773d1
commit 072714f910
1 changed files with 2 additions and 2 deletions

View File

@ -154,13 +154,13 @@ static HRESULT DSoundRender_GetWritePos(DSoundRenderImpl *This, DWORD *ret_write
IReferenceClock_GetTime(This->filter.pClock, &cur);
cur -= This->filter.rtStreamStart;
} else
cur = -1;
write_at = -1;
if (writepos == min_writepos)
max_lag = 0;
*skip = 0;
if (cur < 0 || write_at < 0) {
if (write_at < 0) {
*ret_writepos = writepos;
goto end;
}