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

playlist: remove "item-current" variable

parent 6b772873
...@@ -102,7 +102,6 @@ TYPEDEF_ARRAY(playlist_item_t*, playlist_item_array_t) ...@@ -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-change": It will contain the input_item_t->i_id of a changed input
* item monitored by the playlist. * item monitored by the playlist.
* - "item-current": It will contain a input_item_t->i_id of the current
* item being played. * item being played.
* *
* - "playlist-item-append": It will contain a pointer to a playlist_add_t. * - "playlist-item-append": It will contain a pointer to a playlist_add_t.
......
...@@ -422,7 +422,6 @@ static void VariablesInit( playlist_t *p_playlist ) ...@@ -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, "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, "input-current", VLC_VAR_ADDRESS );
var_Create( p_playlist, "activity", VLC_VAR_VOID ); var_Create( p_playlist, "activity", VLC_VAR_VOID );
......
...@@ -268,9 +268,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item ) ...@@ -268,9 +268,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
free( psz_arturl ); free( psz_arturl );
free( psz_name ); free( psz_name );
} }
/* FIXME: this is not safe !!*/
PL_UNLOCK; PL_UNLOCK;
var_SetAddress( p_playlist, "item-current", p_input );
var_TriggerCallback( p_playlist, "activity" ); var_TriggerCallback( p_playlist, "activity" );
PL_LOCK; PL_LOCK;
......
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