Commit f6640c6f authored by Thomas Guillem's avatar Thomas Guillem

lib: add "gapless" option (enabled by default)

parent e5edff13
......@@ -79,6 +79,7 @@ PlaylistConfigureFromVariables(vlc_playlist_t *playlist, vlc_object_t *obj)
bool start_paused = var_InheritBool(obj, "start-paused");
bool playlist_cork = var_InheritBool(obj, "playlist-cork");
bool gapless = var_InheritBool(obj, "gapless");
vlc_playlist_Lock(playlist);
vlc_playlist_SetPlaybackOrder(playlist, order);
......@@ -91,6 +92,7 @@ PlaylistConfigureFromVariables(vlc_playlist_t *playlist, vlc_object_t *obj)
vlc_player_SetMediaStoppedAction(player, media_stopped_action);
vlc_player_SetStartPaused(player, start_paused);
vlc_player_SetPauseOnCork(player, playlist_cork);
vlc_player_SetGaplessEnabled(player, gapless);
vlc_playlist_Unlock(playlist);
}
......
......@@ -1269,6 +1269,11 @@ static const char *const psz_recursive_list_text[] = {
"If pending audio communication is detected, playback will be paused " \
"automatically." )
#define GAPLESS_TEXT N_("Gapless playback")
#define GAPLESS_LONGTEXT N_( \
"Preload the next media from the playlist in order to have uninterrupted " \
"playback of consecutive audio tracks.")
#define ML_TEXT N_("Use media library")
#define ML_LONGTEXT N_( \
"The media library is automatically saved and reloaded each time you " \
......@@ -2185,6 +2190,7 @@ vlc_module_begin ()
add_bool( "playlist-autostart", true,
AUTOSTART_TEXT, AUTOSTART_LONGTEXT, false )
add_bool( "playlist-cork", true, CORK_TEXT, CORK_LONGTEXT, false )
add_bool( "gapless", true, GAPLESS_TEXT, GAPLESS_LONGTEXT, false )
#if defined(_WIN32) || defined(HAVE_DBUS) || defined(__OS2__)
add_bool( "one-instance", 0, ONEINSTANCE_TEXT,
ONEINSTANCE_LONGTEXT, true )
......
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