summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-10 16:08:07 +0200
committerwm4 <wm4@nowhere>2014-05-24 16:39:27 +0200
commit7b1f12adba6cdd748c0a7e14fcbd5af427e2daa6 (patch)
tree124908af575ebe1950cafc30226f40b617d2ddc3
parentcf1645aebb4768fe3f67a0acdbd392232b400b88 (diff)
downloadmpv-7b1f12adba6cdd748c0a7e14fcbd5af427e2daa6.tar.bz2
mpv-7b1f12adba6cdd748c0a7e14fcbd5af427e2daa6.tar.xz
player: don't complain on too long filenames
mpv supports per-file config files, basically filename+".conf". We use a static buffer for the new filename, and if that buffer is too small, we print a warning. This is confusing for e.g. long URLs, so just hide the warning by default. Why not dynamically allocate the buffer? Who cares.
-rw-r--r--player/configfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/configfiles.c b/player/configfiles.c
index e211f9b341..c6ad0edb6d 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -110,8 +110,8 @@ static void mp_load_per_file_config(struct MPContext *mpctx)
const char *file = mpctx->filename;
if (snprintf(cfg, sizeof(cfg), "%s.conf", file) >= sizeof(cfg)) {
- MP_WARN(mpctx, "Filename is too long, "
- "can not load file or directory specific config files\n");
+ MP_VERBOSE(mpctx, "Filename is too long, "
+ "can not load file or directory specific config files\n");
return;
}