[vlc-devel] commit: Fixed the option "auto-preparse". (Laurent Aimar )

git version control git at videolan.org
Wed May 13 23:48:51 CEST 2009


vlc | branch: 1.0-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed May 13 23:41:54 2009 +0200| [46fc1c8c88ca29881cca7ca6f51f7b5a8ad8565e] | committer: Laurent Aimar 

Fixed the option "auto-preparse".

 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=46fc1c8c88ca29881cca7ca6f51f7b5a8ad8565e
---

 src/playlist/engine.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 0c9a7bf..c1d8065 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -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 );
 




More information about the vlc-devel mailing list