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