From b6346cd0bafc6a56c29b9c6c56e612e32295ea98 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2015 16:21:44 +0200 Subject: player: make resuming playlists less noisy in verbose mode mp_find_config_file() will print the filename lookup and its result in verbose mode. This is wanted, but gets inconvenient when it is done for every playlist entry (for resuming). Lookup the watch_later subdir only once and cache the result instead. This drops the logic for loading the resume file from other locations, which should generally be unnecessary, though might lead to confusion if the user has mixed old and new config paths (which the user shouldn't). Also add a mp_find_user_config_file() function for a more straightforward and reliable way to get actual local configpaths, instead of possibly global and unwritable locations. Also, for symmetry, check the resume option in mp_load_playback_resume() just like mp_check_playlist_resume() does. --- player/loadfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 40ed71d5fd..3dc0e0318a 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1063,8 +1063,7 @@ static void play_current_file(struct MPContext *mpctx) mp_load_auto_profiles(mpctx); - if (opts->position_resume) - mp_load_playback_resume(mpctx, mpctx->filename); + mp_load_playback_resume(mpctx, mpctx->filename); load_per_file_options(mpctx->mconfig, mpctx->playing->params, mpctx->playing->num_params); -- cgit v1.2.3