quartz: Allow stream time to go negative in sound renderer.
This commit is contained in:
parent
97215773d1
commit
072714f910
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue