Commit 922f1c07 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use var_GetInteger()

parent 81d02d8e
...@@ -395,12 +395,11 @@ void InputManager::UpdateNavigation() ...@@ -395,12 +395,11 @@ void InputManager::UpdateNavigation()
void InputManager::UpdateStatus() void InputManager::UpdateStatus()
{ {
/* Update playing status */ /* Update playing status */
vlc_value_t val; val.i_int = 0; int state = var_GetInteger( p_input, "state" );
var_Get( p_input, "state", &val ); if( i_old_playing_status != state )
if( i_old_playing_status != val.i_int )
{ {
i_old_playing_status = val.i_int; i_old_playing_status = state;
emit statusChanged( val.i_int ); emit statusChanged( state );
} }
} }
......
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