[PATCH 1/6] winmm: Do not blindly reset device when already stopped

Maarten Lankhorst m.b.lankhorst at gmail.com
Tue Oct 16 07:06:25 CDT 2012


---
 dlls/winmm/waveform.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c
index 73f7a04..9bcabe2 100644
--- a/dlls/winmm/waveform.c
+++ b/dlls/winmm/waveform.c
@@ -1398,6 +1398,8 @@ static void WOD_PushData(WINMM_Device *device)
         goto exit;
 
     if(!device->first){
+        if (device->stopped)
+            goto exit;
         device->stopped = TRUE;
         device->last_clock_pos = 0;
         IAudioClient_Stop(device->client);
-- 
1.7.11.3




More information about the wine-patches mailing list