]> git.sesse.net Git - vlc/commitdiff
Fixed the option "auto-preparse".
authorLaurent Aimar <fenrir@videolan.org>
Wed, 13 May 2009 21:41:54 +0000 (23:41 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 13 May 2009 21:48:07 +0000 (23:48 +0200)
 It is now respected. It is part of the privacy problem with
meta data/art.
 I think that
  --noauto-preparse --album-art 0
 will workaround the issue until a new option is added.

src/playlist/engine.c

index 0c9a7bfdd23fc59fc2aeb57438f810d6644da2d6..c1d8065b08e558a57fb3f52dd1f84fda7702cd7a 100644 (file)
@@ -101,8 +101,8 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
 
     pl_priv(p_playlist)->b_doing_ml = false;
 
-    pl_priv(p_playlist)->b_auto_preparse =
-                        var_CreateGetBool( p_playlist, "auto-preparse" ) ;
+    const bool b_auto_preparse = var_CreateGetBool( p_playlist, "auto-preparse" );
+    pl_priv(p_playlist)->b_auto_preparse = b_auto_preparse;
 
     PL_LOCK; /* playlist_NodeCreate will check for it */
     p_playlist->p_root_category = playlist_NodeCreate( p_playlist, NULL, NULL,
@@ -156,7 +156,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
 
     pl_priv(p_playlist)->b_auto_preparse = false;
     playlist_MLLoad( p_playlist );
-    pl_priv(p_playlist)->b_auto_preparse = true;
+    pl_priv(p_playlist)->b_auto_preparse = b_auto_preparse;
 
     vlc_object_set_destructor( p_playlist, playlist_Destructor );