]> granicus.if.org Git - handbrake/commitdiff
libdvdnav: add patch that moves reading title label below validity checks
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 2 Jun 2009 21:05:12 +0000 (21:05 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 2 Jun 2009 21:05:12 +0000 (21:05 +0000)
this eliminates the garbage title information libdvdnav spewed to stderr

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2473 b64f7644-9d1e-0410-96f1-a4d463321fa5

contrib/libdvdnav/A03-quiet.patch [new file with mode: 0644]

diff --git a/contrib/libdvdnav/A03-quiet.patch b/contrib/libdvdnav/A03-quiet.patch
new file mode 100644 (file)
index 0000000..87a7e77
--- /dev/null
@@ -0,0 +1,21 @@
+diff -Naur libdvdnav.orig/src/vm/vm.c libdvdnav/src/vm/vm.c
+--- libdvdnav.orig/src/vm/vm.c 2009-03-13 18:28:22.000000000 -0700
++++ libdvdnav/src/vm/vm.c      2009-06-02 13:50:06.000000000 -0700
+@@ -354,8 +354,6 @@
+       fprintf(MSG_OUT, "libdvdnav: vm: failed to open/read the DVD\n");
+       return 0;
+     }
+-    dvd_read_name(vm->dvd_name, vm->dvd_serial, dvdroot);
+-    vm->map  = remap_loadmap(vm->dvd_name);
+     vm->vmgi = ifoOpenVMGI(vm->dvd);
+     if(!vm->vmgi) {
+       fprintf(MSG_OUT, "libdvdnav: vm: failed to read VIDEO_TS.IFO\n");
+@@ -386,6 +384,8 @@
+       /* return 0; Not really used for now.. */
+     }
+     /* ifoRead_TXTDT_MGI(vmgi); Not implemented yet */
++    dvd_read_name(vm->dvd_name, vm->dvd_serial, dvdroot);
++    vm->map  = remap_loadmap(vm->dvd_name);
+   }
+   if (vm->vmgi) {
+     int i, mask;