From 4b367d1602f206574886ee135dfe4238b7a08ed8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 10 May 2014 16:08:07 +0200 Subject: 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. --- player/configfiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player/configfiles.c b/player/configfiles.c index bfa3c0ff22..3ef2b7919e 100644 --- a/player/configfiles.c +++ b/player/configfiles.c @@ -114,8 +114,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; } -- cgit v1.2.3