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

Simplify

parent 0c3914d0
......@@ -463,7 +463,6 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist )
*/
int playlist_PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
{
vlc_value_t val;
input_item_t *p_input = p_item->p_input;
int i_activity = var_GetInteger( p_playlist, "activity" ) ;
......@@ -508,9 +507,8 @@ int playlist_PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
free( psz_name );
}
val.i_int = p_input->i_id;
PL_UNLOCK;
var_Set( p_playlist, "playlist-current", val );
var_SetInteger( p_playlist, "playlist-current", p_input->i_id );
PL_LOCK;
return VLC_SUCCESS;
......
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