Commit b1eb791b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: i_last_playlist_id is private.

parent 76c03d8c
......@@ -164,8 +164,6 @@ struct playlist_t
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 */
......
......@@ -79,7 +79,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
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;
......
......@@ -168,7 +168,7 @@ playlist_item_t *playlist_ItemNewFromInput( playlist_t *p_playlist,
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;
......
......@@ -108,6 +108,7 @@ typedef struct playlist_private_t
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;
......
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