diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2018-01-22 18:42:38 +0000 |
---|---|---|
committer | Ricardo Constantino <wiiaboo@gmail.com> | 2018-01-23 11:13:29 +0000 |
commit | 123e0239a0b8167777da42521277667774fe2f30 (patch) | |
tree | 1778942ac479b87059e21f6e182ca01ca63c0ec9 /stream | |
parent | c88ab96a7865e2fa3a167964ae2eeaefd76f745c (diff) |
stream_bluray: silence libbluray's debug messages unless we want them
libbluray's way too verbose on default loglevel with non-breaking issues.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_bluray.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c index 4dad779739..1f5ea1711b 100644 --- a/stream/stream_bluray.c +++ b/stream/stream_bluray.c @@ -35,6 +35,7 @@ #include <libbluray/overlay.h> #include <libbluray/keys.h> #include <libbluray/bluray-version.h> +#include <libbluray/log_control.h> #include <libavutil/common.h> #include "config.h" @@ -388,6 +389,9 @@ static int bluray_stream_open_internal(stream_t *s) return STREAM_UNSUPPORTED; } + if (!mp_msg_test(s->log, MSGL_DEBUG)) + bd_set_debug_mask(0); + /* open device */ BLURAY *bd = bd_open(device, NULL); if (!bd) { |