Commit d83a30d6 authored by Clément Stenac's avatar Clément Stenac

Add an "auto-preparse" option (default TRUE) - Refs:#192

parent f9c3744e
......@@ -687,6 +687,11 @@ static char *ppsz_clock_descriptions[] =
"These options define the behavior of the playlist. Some " \
"of them can be overridden in the playlist dialog box." )
#define PREPARSE_TEXT N_( "Automatically preparse files")
#define PREPARSE_LONGTEXT N_( \
"This option enables automatic preparsing of files added to the playlist " \
"(to retrieve some metadata)." )
#define SD_TEXT N_( "Services discovery modules")
#define SD_LONGTEXT N_( \
"Specifies the services discovery modules to load, separated by " \
......@@ -1384,6 +1389,8 @@ vlc_module_begin();
add_string( "open", "", NULL, OPEN_TEXT, OPEN_LONGTEXT, VLC_FALSE );
add_bool( "auto-preparse", VLC_TRUE, NULL, PREPARSE_TEXT, PREPARSE_LONGTEXT, VLC_FALSE );
set_subcategory( SUBCAT_PLAYLIST_SD );
add_module_list_cat( "services-discovery", SUBCAT_PLAYLIST_SD, NULL,
NULL, SD_TEXT, SD_LONGTEXT, VLC_FALSE );
......
......@@ -243,7 +243,8 @@ int playlist_AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
p_playlist->status.i_status = PLAYLIST_RUNNING;
}
if( i_mode & PLAYLIST_PREPARSE )
if( i_mode & PLAYLIST_PREPARSE &&
var_CreateGetBool( p_playlist, "auto-preparse" ) )
{
playlist_PreparseEnqueue( p_playlist, &p_item->input );
}
......@@ -368,7 +369,8 @@ int playlist_NodeAddItem( playlist_t *p_playlist, playlist_item_t *p_item,
}
p_playlist->status.i_status = PLAYLIST_RUNNING;
}
if( i_mode & PLAYLIST_PREPARSE )
if( i_mode & PLAYLIST_PREPARSE &&
var_CreateGetBool( p_playlist, "auto-preparse" ) )
{
playlist_PreparseEnqueue( p_playlist, &p_item->input );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment