Open koorogi opened 3 months ago
Thanks for the bug report, I had no idea DVDOpen2 was even in there!
In the past, I've patched my own copy of libdvdread to disable log output completely, which is obviously not sustainable.
Fixed so it dumps any libdvdread logs to stderr instead of stdout, and only displays if its log level is ERROR or WARN.
@koorogi can you test it with latest commit and see if you run into any errors? thanks
Here's the beginning out the output I get when running
dvd_info -j /dev/sr0
for a DVD I have.All those
libdvdread
logging lines are included in stdout, and make it impossible to parse the JSON without going out of my way to filter them out.It looks like libdvdread offers a
DVDOpen2
function which allows you to provide a custom logging callback, to direct the log message somewhere other than stdout.