diff options
Diffstat (limited to 'multimedia/lsdvd/1000-log-to-stderr.patch')
-rw-r--r-- | multimedia/lsdvd/1000-log-to-stderr.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/multimedia/lsdvd/1000-log-to-stderr.patch b/multimedia/lsdvd/1000-log-to-stderr.patch deleted file mode 100644 index f88890e0eb..0000000000 --- a/multimedia/lsdvd/1000-log-to-stderr.patch +++ /dev/null @@ -1,30 +0,0 @@ -Description: Adjust use of libdvdread to log to stderr not stdout, - to avoid generating invalid json, xml, etc when not supporting encrypted DVD. -Author: Petter Reinholdtsen <pere@hungry.com> -Origin: commit:ceb584ef8e8c84e77b01bc2aab5d9cb912f2837e -Forwarded: not-needed -Last-Update: 2024-01-02 ---- ---- a/lsdvd.c -+++ b/lsdvd.c -@@ -424,7 +424,19 @@ int main(int argc, char *argv[]) - return 1; - } - -- dvd = DVDOpen(dvd_device); -+ /* Replacement logger to send output to stderr, ensuring -+ stdout is always understandable as xml, json, perl, python, -+ etc. Without this, the 'Encrypted DVD support unavailable' -+ message can show up in the generated files. */ -+ void dvdlogger(void *, dvd_logger_level_t, -+ const char *fmt, va_list list) -+ { -+ fprintf(stderr, "libdvdread: "); -+ vfprintf(stderr, fmt, list); -+ fprintf(stderr, "\n"); -+ } -+ dvd_logger_cb logcb = { dvdlogger }; -+ dvd = DVDOpen2(NULL, &logcb, dvd_device); - if( !dvd ) { - fprintf( stderr, "Can't open disc %s!\n", dvd_device); - return 2; |