[PATCH 2/4] quartz: Allow stream time to go negative in sound renderer
Maarten Lankhorst
m.b.lankhorst at gmail.com
Wed Dec 1 16:17:29 CST 2010
---
dlls/quartz/dsoundrender.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index c0591ba..903d181 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -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;
}
--
1.7.1
More information about the wine-patches
mailing list