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,
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 );