aboutsummaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-07-09 21:50:17 +0200
committerChristian Hesse <mail@eworm.de>2015-07-09 21:50:17 +0200
commite31de6a142b9c312065eb4228215424fc1182ce2 (patch)
treee5b987a072dc55da2612a86b3264e02ff0314bc1 /mpd-notification.c
parentmove verbose output into conditional output (diff)
downloadmpd-notification-e31de6a142b9c312065eb4228215424fc1182ce2.tar.gz
mpd-notification-e31de6a142b9c312065eb4228215424fc1182ce2.tar.bz2
mpd-notification-e31de6a142b9c312065eb4228215424fc1182ce2.tar.xz
mpd-notification-e31de6a142b9c312065eb4228215424fc1182ce2.tar.zst
mpd-notification-e31de6a142b9c312065eb4228215424fc1182ce2.zip
silent libav error messages only when not verbose
Diffstat (limited to '')
-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);