From e31de6a142b9c312065eb4228215424fc1182ce2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 9 Jul 2015 21:50:17 +0200 Subject: silent libav error messages only when not verbose --- mpd-notification.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf