1
mirror of https://github.com/mpv-player/mpv synced 2024-10-22 08:51:57 +02:00

stream_bluray: silence libbluray's debug messages unless we want them

libbluray's way too verbose on default loglevel with non-breaking issues.
This commit is contained in:
Ricardo Constantino 2018-01-22 18:42:38 +00:00
parent c88ab96a78
commit 123e0239a0
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531

View File

@ -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) {