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
This commit is contained in:
vayne 2006-07-08 16:51:11 +00:00
parent f73c2ed712
commit a0b3f86c4d
1 changed files with 3 additions and 0 deletions

View File

@ -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);