diff options
author | wm4 <wm4@nowhere> | 2014-05-10 16:08:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-10 16:08:07 +0200 |
commit | 4b367d1602f206574886ee135dfe4238b7a08ed8 (patch) | |
tree | 9f02fc0d355aca1c49e1e23d519bae1d04b35f76 /player | |
parent | 6f86e32630d12a5ec37448d50ae7ba3ab0ed6b09 (diff) | |
download | mpv-4b367d1602f206574886ee135dfe4238b7a08ed8.tar.bz2 mpv-4b367d1602f206574886ee135dfe4238b7a08ed8.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.
Diffstat (limited to 'player')
-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 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; } |