playlist_item_array_t current; /**< Items currently being played */
int i_current_index; /**< Index in current array */
- int i_last_playlist_id; /**< Last id to an item */
-
/* Predefined items */
playlist_item_t * p_root_category; /**< Root of category tree */
playlist_item_t * p_root_onelevel; /**< Root of onelevel tree */
VariablesInit( p_playlist );
/* Initialise data structures */
- p_playlist->i_last_playlist_id = 0;
+ pl_priv(p_playlist)->i_last_playlist_id = 0;
pl_priv(p_playlist)->p_input = NULL;
pl_priv(p_playlist)->gc_date = 0;
p_item->p_input = p_input;
vlc_gc_incref( p_item->p_input );
- p_item->i_id = ++p_playlist->i_last_playlist_id;
+ p_item->i_id = ++pl_priv(p_playlist)->i_last_playlist_id;
p_item->p_parent = NULL;
p_item->i_children = -1;
mtime_t gc_date;
mtime_t last_rebuild_date;
bool b_reset_currently_playing; /** Reset current item array */
+ int i_last_playlist_id; /**< Last id to an item */
} playlist_private_t;