diff options
author | wm4 <wm4@nowhere> | 2014-05-10 16:08:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-24 16:39:27 +0200 |
commit | 7b1f12adba6cdd748c0a7e14fcbd5af427e2daa6 (patch) | |
tree | 124908af575ebe1950cafc30226f40b617d2ddc3 | |
parent | cf1645aebb4768fe3f67a0acdbd392232b400b88 (diff) | |
download | mpv-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.c | 4 |
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; } |