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:44:56 +0000 (23:44 +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 0c9a7bf..c1d8065 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 );