playlist_t* p_playlist = (playlist_t*) p_this;
char *psz_buf = NULL;
input_thread_t *p_input;
+ bool b_is_item_current = !strncmp( "item-current", psz_var, 12 );
/* Don't update Telepathy presence each time an item has been preparsed */
- if( !strncmp( "item-current", psz_var, 16 ) )
+ if( b_is_item_current )
{ /* stores the current input item id */
p_intf->p_sys->i_id = newval.i_int;
p_intf->p_sys->i_item_changes = 0;
}
}
- if( !strncmp( "item-current", psz_var, 16 ) )
+ if( b_is_item_current )
var_AddCallback( p_input, "state", StateChange, p_intf );
/* We format the string to be displayed */