[MPlayer-cvslog] r37048 - trunk/gui/win32/interface.c

ib subversion at mplayerhq.hu
Sun Mar 23 13:31:50 CET 2014


Author: ib
Date: Sun Mar 23 13:31:50 2014
New Revision: 37048

Log:
Add variable sh_audio in Win32 GUI.

Adjust the code to the X11/GTK GUI.

Modified:
   trunk/gui/win32/interface.c

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Sun Mar 23 13:10:30 2014	(r37047)
+++ trunk/gui/win32/interface.c	Sun Mar 23 13:31:50 2014	(r37048)
@@ -560,6 +560,7 @@ int gui(int what, void *data)
 {
     int idata = (intptr_t) data;
     stream_t *stream;
+    sh_audio_t *sh_audio;
 #ifdef CONFIG_DVDREAD
     dvd_priv_t *dvdp;
 #endif
@@ -621,7 +622,8 @@ int gui(int what, void *data)
         }
         case GUI_SET_AUDIO:
         {
-            if (data && !guiInfo.sh_video) guiInfo.VideoWindow = FALSE;
+            sh_audio = data;
+            if (sh_audio && !guiInfo.sh_video) guiInfo.VideoWindow = FALSE;
             if(IsWindowVisible(mygui->videowindow) && !guiInfo.VideoWindow)
                 ShowWindow(mygui->videowindow, SW_HIDE);
             break;


More information about the MPlayer-cvslog mailing list