]> git.sesse.net Git - vlc/commitdiff
playlist: i_last_playlist_id is private.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 28 Sep 2008 15:02:06 +0000 (17:02 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 28 Sep 2008 15:10:01 +0000 (17:10 +0200)
include/vlc_playlist.h
src/playlist/engine.c
src/playlist/item.c
src/playlist/playlist_internal.h

index 93d9b75ee6062348e2857b41ec6a4929e12495e9..2b40bc6b59f698df409849c5aa3619698a7e1325 100644 (file)
@@ -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 */
index 675f8dd0bee62c499e7e7a1a9e9a79535eaee1f2..7c04b5d6b906c8b78ca8dd454ab976781435eb5f 100644 (file)
@@ -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;
index 950d82c9c29ee01436f05359b384f02281d3166b..dee676c86fd75be33a6347679910fd1c94a49bd8 100644 (file)
@@ -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;
index 51c2e751e810c73714a630c384e32f2dbd94ddb2..c6e5ea6997c5e9bf3d92b276a22eb6edc9d3beb5 100644 (file)
@@ -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;