From a0b3f86c4d0c25cd6265f2820f35c0a088e5cc15 Mon Sep 17 00:00:00 2001 From: vayne Date: Sat, 8 Jul 2006 16:51:11 +0000 Subject: [PATCH] crash fix when clicking on volume sliders when in stop state. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18958 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/win32/interface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gui/win32/interface.c b/Gui/win32/interface.c index 02b944301a..6d425340b5 100644 --- a/Gui/win32/interface.c +++ b/Gui/win32/interface.c @@ -239,6 +239,9 @@ static void guiSetEvent(int event) { float l,r; + if (guiIntfStruct.Playing == 0) + break; + if (guiIntfStruct.Balance == 50.0f) mixer_setvolume(&mixer, guiIntfStruct.Volume, guiIntfStruct.Volume);