summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-29 22:28:18 +0200
committerwm4 <wm4@nowhere>2012-07-30 01:46:04 +0200
commitd80b84f1a070630a2320ccf4d8ec1da1cdda1904 (patch)
tree3c8905022bee0f53559e6314e25d0401ebe6e813
parentcaeff2b1bed6a53ef7707251c57731fc29b667e0 (diff)
downloadmpv-d80b84f1a070630a2320ccf4d8ec1da1cdda1904.tar.bz2
mpv-d80b84f1a070630a2320ccf4d8ec1da1cdda1904.tar.xz
mixer: silence message about inserting volume filter
But only if softvol is enabled. Otherwise, it should be a warning.
-rw-r--r--mixer.c5
1 files 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,