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

index cbb6c15f5f659faecd8afacdc0d89e8c72e802b6..2a85c392dd04475145a2afeea31445413c35e668 100644 (file)
@@ -165,7 +165,6 @@ struct playlist_t
     int                   i_current_index; /**< Index in current array */
     /** Reset current item array */
     bool            b_reset_currently_playing;
-    mtime_t               last_rebuild_date;
 
     int                   i_last_playlist_id; /**< Last id to an item */
 
index 9205ded2c7f139cfa36a91b43edc54f72dc44211..2d8066650b8f1a564a6d670fa9109eef1b6a7bc5 100644 (file)
@@ -92,7 +92,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
 
     p_playlist->i_current_index = 0;
     p_playlist->b_reset_currently_playing = true;
-    p_playlist->last_rebuild_date = 0;
+    pl_priv(p_playlist)->last_rebuild_date = 0;
 
     pl_priv(p_playlist)->b_tree = var_CreateGetBool( p_playlist, "playlist-tree" );
 
@@ -363,11 +363,11 @@ void playlist_MainLoop( playlist_t *p_playlist )
     PL_ASSERT_LOCKED;
 
     if( p_playlist->b_reset_currently_playing &&
-        mdate() - p_playlist->last_rebuild_date > 30000 ) // 30 ms
+        mdate() - pl_priv(p_playlist)->last_rebuild_date > 30000 ) // 30 ms
     {
         ResetCurrentlyPlaying( p_playlist, var_GetBool( p_playlist, "random" ),
                                get_current_status_item( p_playlist ) );
-        p_playlist->last_rebuild_date = mdate();
+        pl_priv(p_playlist)->last_rebuild_date = mdate();
     }
 
 check_input:
index e9601a1549f4b0b94bf0d01352868b2cea85805a..bc8469a8934e74a6bd567e81484d2b88281b65cf 100644 (file)
@@ -106,6 +106,8 @@ typedef struct playlist_private_t
     bool     b_auto_preparse;
     bool     b_cant_sleep;
     mtime_t  gc_date;
+    mtime_t  last_rebuild_date;
+
 } playlist_private_t;
 
 #define pl_priv( pl ) ((playlist_private_t *)(pl))