]> git.sesse.net Git - vlc/commitdiff
playlist: remove "item-current" variable
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Nov 2012 19:26:36 +0000 (21:26 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Nov 2012 19:26:56 +0000 (21:26 +0200)
include/vlc_playlist.h
src/playlist/engine.c
src/playlist/thread.c

index ea269a2f3c67cd61dda1c74d0652357b272f3a10..d837e7dce112496918cf1099b6347c55ec28bef9 100644 (file)
@@ -102,7 +102,6 @@ TYPEDEF_ARRAY(playlist_item_t*, playlist_item_array_t)
  *
  * - "item-change": It will contain the input_item_t->i_id of a changed input
  * item monitored by the playlist.
- * - "item-current": It will contain a input_item_t->i_id of the current
  * item being played.
  *
  * - "playlist-item-append": It will contain a pointer to a playlist_add_t.
index 42d554e0eccf7347281d20ac02f90f979b437765..f0951e18f6b37fe74166007e56f4abe986937652 100644 (file)
@@ -422,7 +422,6 @@ static void VariablesInit( playlist_t *p_playlist )
 
     var_Create( p_playlist, "playlist-item-append", VLC_VAR_ADDRESS );
 
-    var_Create( p_playlist, "item-current", VLC_VAR_ADDRESS );
     var_Create( p_playlist, "input-current", VLC_VAR_ADDRESS );
 
     var_Create( p_playlist, "activity", VLC_VAR_VOID );
index 208b2495dddbd94bb2ab720e38858a3bd004e4f3..b2f8844b3f8851e36514f0d9bb261bc34bd5ac12 100644 (file)
@@ -268,9 +268,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
         free( psz_arturl );
         free( psz_name );
     }
-    /* FIXME: this is not safe !!*/
     PL_UNLOCK;
-    var_SetAddress( p_playlist, "item-current", p_input );
     var_TriggerCallback( p_playlist, "activity" );
     PL_LOCK;