aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-07-09 21:50:17 +0200
committerGravatar Christian Hesse <mail@eworm.de>2015-07-09 21:50:17 +0200
commite31de6a142b9c312065eb4228215424fc1182ce2 (patch)
treee5b987a072dc55da2612a86b3264e02ff0314bc1
parent23c3d467b4ca19239ac68e060c51f0d1403f3c5e (diff)
downloadmpd-notification-e31de6a142b9c312065eb4228215424fc1182ce2.tar.gz
mpd-notification-e31de6a142b9c312065eb4228215424fc1182ce2.tar.zst
silent libav error messages only when not verbose
-rw-r--r--mpd-notification.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index d064700..189bba1 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -259,7 +259,8 @@ int main(int argc, char ** argv) {
av_register_all();
/* only fatal messages from libav */
- av_log_set_level(AV_LOG_FATAL);
+ if (verbose == 0)
+ av_log_set_level(AV_LOG_FATAL);
#endif
conn = mpd_connection_new(mpd_host, mpd_port, mpd_timeout);