Commit 83210184 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4 - tracks detection is splitted from the other functions. Fix the...

Qt4 - tracks detection is splitted from the other functions. Fix the "fullscreen button not showing" bug in some cases.

parent 890f9217
...@@ -171,6 +171,7 @@ void InputManager::customEvent( QEvent *event ) ...@@ -171,6 +171,7 @@ void InputManager::customEvent( QEvent *event )
break; break;
case ItemChanged_Type: case ItemChanged_Type:
UpdateMeta(); UpdateMeta();
UpdateTracks();
UpdateTitle(); UpdateTitle();
UpdateArt(); UpdateArt();
break; break;
...@@ -182,6 +183,7 @@ void InputManager::customEvent( QEvent *event ) ...@@ -182,6 +183,7 @@ void InputManager::customEvent( QEvent *event )
break; break;
case ItemStateChanged_Type: case ItemStateChanged_Type:
UpdateStatus(); UpdateStatus();
UpdateTracks();
break; break;
} }
} }
...@@ -277,7 +279,10 @@ void InputManager::UpdateMeta() ...@@ -277,7 +279,10 @@ void InputManager::UpdateMeta()
emit nameChanged( text ); emit nameChanged( text );
old_name=text; old_name=text;
} }
}
void InputManager::UpdateTracks()
{
/* Has Audio, has Video Tracks ? */ /* Has Audio, has Video Tracks ? */
vlc_value_t val; vlc_value_t val;
var_Change( p_input, "audio-es", VLC_VAR_CHOICESCOUNT, &val, NULL ); var_Change( p_input, "audio-es", VLC_VAR_CHOICESCOUNT, &val, NULL );
......
...@@ -72,6 +72,7 @@ private: ...@@ -72,6 +72,7 @@ private:
void UpdateStatus(); void UpdateStatus();
void UpdateTitle(); void UpdateTitle();
void UpdatePosition(); void UpdatePosition();
void UpdateTracks();
void UpdateArt(); void UpdateArt();
intf_thread_t *p_intf; intf_thread_t *p_intf;
input_thread_t *p_input; input_thread_t *p_input;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment