summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-09 16:21:44 +0200
committerwm4 <wm4@nowhere>2015-05-09 16:48:05 +0200
commitb6346cd0bafc6a56c29b9c6c56e612e32295ea98 (patch)
tree032def7d3a9f48687038994cfcd6a8cb4a5ce772 /player/core.h
parent34ee78f2cba0510cc37162e89cbdc9d4a9514f92 (diff)
downloadmpv-b6346cd0bafc6a56c29b9c6c56e612e32295ea98.tar.bz2
mpv-b6346cd0bafc6a56c29b9c6c56e612e32295ea98.tar.xz
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.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index ea7694d02a..055a48bda4 100644
--- a/player/core.h
+++ b/player/core.h
@@ -335,6 +335,8 @@ typedef struct MPContext {
// playback rate. Used to avoid showing it multiple times.
bool drop_message_shown;
+ char *cached_watch_later_configdir;
+
struct screenshot_ctx *screenshot_ctx;
struct command_ctx *command_ctx;
struct encode_lavc_context *encode_lavc_ctx;