Maarten Lankhorst : quartz: Allow stream time to go negative in sound renderer.
Alexandre Julliard
julliard at winehq.org
Thu Dec 2 12:23:56 CST 2010
Module: wine
Branch: master
Commit: 072714f91019725bb3d20a2307cdd33947c25c48
URL: http://source.winehq.org/git/wine.git/?a=commit;h=072714f91019725bb3d20a2307cdd33947c25c48
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Wed Dec 1 23:17:29 2010 +0100
quartz: Allow stream time to go negative in sound renderer.
---
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;
}
More information about the wine-cvs
mailing list