From b723cab19d306f4f2a42895f1c1fec14650400fb Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Dec 2014 21:07:45 +0100 Subject: demux: don't print message if replaygain tags were not found Even thouhg it was printed in verbose mode only, it was annoying. --- demux/demux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'demux') diff --git a/demux/demux.c b/demux/demux.c index af7277941e..a100149a48 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -663,10 +663,8 @@ static int decode_gain(demuxer_t *demuxer, const char *tag, float *out) float dec_val; tag_val = mp_tags_get_str(demuxer->metadata, tag); - if (!tag_val) { - mp_msg(demuxer->log, MSGL_V, "Replaygain tags not found\n"); + if (!tag_val) return -1; - } if (decode_float(tag_val, &dec_val)) { mp_msg(demuxer->log, MSGL_ERR, "Invalid replaygain value\n"); -- cgit v1.2.3