Qt4 - tracks detection is splitted from the other functions. Fix the "fullscreen...
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 31 Jan 2008 05:46:15 +0000 (05:46 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 31 Jan 2008 05:46:15 +0000 (05:46 +0000)
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.hpp

index e855f65..c9af4b4 100644 (file)
@@ -171,6 +171,7 @@ void InputManager::customEvent( QEvent *event )
         break;
     case ItemChanged_Type:
         UpdateMeta();
+        UpdateTracks();
         UpdateTitle();
         UpdateArt();
         break;
@@ -182,6 +183,7 @@ void InputManager::customEvent( QEvent *event )
         break;
     case ItemStateChanged_Type:
        UpdateStatus();
+       UpdateTracks();
        break;
     }
 }
@@ -277,7 +279,10 @@ void InputManager::UpdateMeta()
         emit nameChanged( text );
         old_name=text;
     }
+}
 
+void InputManager::UpdateTracks()
+{
     /* Has Audio, has Video Tracks ? */
     vlc_value_t val;
     var_Change( p_input, "audio-es", VLC_VAR_CHOICESCOUNT, &val, NULL );
index e7c371b..81e7ebd 100644 (file)
@@ -72,6 +72,7 @@ private:
     void UpdateStatus();
     void UpdateTitle();
     void UpdatePosition();
+    void UpdateTracks();
     void UpdateArt();
     intf_thread_t  *p_intf;
     input_thread_t *p_input;