changeset 36952:60361776b592

Add variable sh_audio in Win32 GUI. Adjust the code to the X11/GTK GUI.
author ib
date Sun, 23 Mar 2014 12:31:50 +0000
parents bd4f00c044a9
children 63449be2a903
files gui/win32/interface.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/interface.c	Sun Mar 23 12:10:30 2014 +0000
+++ b/gui/win32/interface.c	Sun Mar 23 12:31:50 2014 +0000
@@ -560,6 +560,7 @@
 {
     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 @@
         }
         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;