From d80b84f1a070630a2320ccf4d8ec1da1cdda1904 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 29 Jul 2012 22:28:18 +0200 Subject: mixer: silence message about inserting volume filter But only if softvol is enabled. Otherwise, it should be a warning. --- mixer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mixer.c b/mixer.c index 7be2179384..d01cab8b71 100644 --- a/mixer.c +++ b/mixer.c @@ -103,8 +103,9 @@ static void setvolume_internal(mixer_t *mixer, float l, float r) af_to_dB(AF_NCH, db_vals, db_vals, 20.0); if (!af_control_any_rev(mixer->afilter, AF_CONTROL_VOLUME_LEVEL | AF_CONTROL_SET, - db_vals)) { - mp_tmsg(MSGT_GLOBAL, MSGL_INFO, + db_vals)) + { + mp_tmsg(MSGT_GLOBAL, mixer->softvol ? MSGL_V : MSGL_WARN, "[Mixer] No hardware mixing, inserting volume filter.\n"); if (!(af_add(mixer->afilter, "volume") && af_control_any_rev(mixer->afilter, -- cgit v1.2.3