diff gui/win32/interface.c @ 33661:b2071e60b20b

Rename guiGetEvent type guiSetAudioOnly guiSetAudio. (All audio related guiGetEvent() code will be moved here later.) Additionally, set variable guiInfo.AudioChannels in guiGetEvent() rather than in mplayer.c. In order to do this, guiSetVideo must come first, then audio.
author ib
date Tue, 28 Jun 2011 08:52:02 +0000
parents 40a5f2faa22c
children 0f592e8530f1
line wrap: on
line diff
--- a/gui/win32/interface.c	Tue Jun 28 07:31:35 2011 +0000
+++ b/gui/win32/interface.c	Tue Jun 28 08:52:02 2011 +0000
@@ -580,9 +580,11 @@
                 strcpy(guiInfo.Filename, filename);
             break;
         }
-        case guiSetAudioOnly:
+        case guiSetAudio:
         {
-            guiInfo.AudioOnly = (int) arg;
+            // NOTE: This type doesn't mean (and never meant) that we have
+            // *just* audio, so there probably should be a check before
+            // hiding (see gui/interface.c).
             if(IsWindowVisible(mygui->subwindow))
                 ShowWindow(mygui->subwindow, SW_HIDE);
             break;