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

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 )
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 );
......
......@@ -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;
......
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