]> git.sesse.net Git - vlc/commitdiff
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 e855f652075d6674106ef66603355fa53ba0f359..c9af4b40a7cdc271db74394bc9986fc4956378c9 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 e7c371b425724f20cf49de07c865f44505a081e0..81e7ebd561d047587a0465efb7af1d082836e51b 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;