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

index 65c7b20f1def0c5fc71579520defe8939071f8e4..29b79c18f8c16fd8a131871a687d7d184f5ef0d4 100644 (file)
@@ -177,8 +177,6 @@ struct playlist_t
     playlist_item_t *     p_local_onelevel; /** < "Playlist" in ONELEVEL view */
     playlist_item_t *     p_ml_onelevel; /** < "Library" in ONELEVEL view */
 
-    bool            b_auto_preparse;
-
     /* Runtime */
     int                   i_sort; /**< Last sorting applied to the playlist */
     int                   i_order; /**< Last ordering applied to the playlist */
index ee7e2ee2580761e4d8ecaa7393b93a2cc836f580..ed041c7cb28010f86ad047047874db2cfc4bc170 100644 (file)
@@ -98,7 +98,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
 
     pl_priv(p_playlist)->b_doing_ml = false;
 
-    p_playlist->b_auto_preparse =
+    pl_priv(p_playlist)->b_auto_preparse =
                         var_CreateGetBool( p_playlist, "auto-preparse" ) ;
 
     PL_LOCK; /* playlist_NodeCreate will check for it */
@@ -155,10 +155,10 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
     p_playlist->i_order = ORDER_NORMAL;
 
 
-    b_save = p_playlist->b_auto_preparse;
-    p_playlist->b_auto_preparse = false;
+    b_save = pl_priv(p_playlist)->b_auto_preparse;
+    pl_priv(p_playlist)->b_auto_preparse = false;
     playlist_MLLoad( p_playlist );
-    p_playlist->b_auto_preparse = true;
+    pl_priv(p_playlist)->b_auto_preparse = true;
 
     vlc_object_set_destructor( p_playlist, playlist_Destructor );
 
index 6c276bd5336eb5103fa8f607b96900e496b8f26d..492ec3a95aaafdf0e633bd173a246501b2129d7b 100644 (file)
@@ -863,7 +863,7 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
     /* Preparse if PREPARSE or SPREPARSE & not enough meta */
     char *psz_artist = input_item_GetArtist( p_item_cat->p_input );
     char *psz_album = input_item_GetAlbum( p_item_cat->p_input );
-    if( p_playlist->b_auto_preparse &&
+    if( pl_priv(p_playlist)->b_auto_preparse &&
           (i_mode & PLAYLIST_PREPARSE ||
           ( i_mode & PLAYLIST_SPREPARSE &&
             ( EMPTY_STR( psz_artist ) || ( EMPTY_STR( psz_album ) ) )
index d0af7a731443748aa9001a611711f248171d071e..8a17401f19ee880ec06e14feac197bd5e21a88dd 100644 (file)
@@ -103,6 +103,7 @@ typedef struct playlist_private_t
 
     bool     b_tree; /**< Display as a tree */
     bool     b_doing_ml; /**< Doing media library stuff  get quicker */
+    bool     b_auto_preparse;
 } playlist_private_t;
 
 #define pl_priv( pl ) ((playlist_private_t *)(pl))