changeset 18953:b83cefcd7e41

crash fix when clicking on volume sliders when in stop state.
author vayne
date Sat, 08 Jul 2006 16:51:11 +0000
parents 68560e9f3d6f
children 42d4e99a075e
files Gui/win32/interface.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/interface.c	Sat Jul 08 16:48:41 2006 +0000
+++ b/Gui/win32/interface.c	Sat Jul 08 16:51:11 2006 +0000
@@ -239,6 +239,9 @@
         {
             float l,r;
 
+            if (guiIntfStruct.Playing == 0)
+                break;
+
             if (guiIntfStruct.Balance == 50.0f)
                 mixer_setvolume(&mixer, guiIntfStruct.Volume, guiIntfStruct.Volume);