mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00: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:
parent
c88ab96a78
commit
123e0239a0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user