Hi,

Calling vm_reset (via dvdnav_reset) does not currently reset the hop_channel field. This leads to "Error reading NAV packet." errors on some DVDs because dvdnav_get_next_cache_block tries to prepare a HOP_CHANNEL event and read from a file which hasn't yet been opened.

The attached patch resets the hop_channel field to zero.

Regards,

Richard.
Index: src/vm/vm.c
===================================================================
--- src/vm/vm.c	(revision 1257)
+++ src/vm/vm.c	(working copy)
@@ -350,6 +350,8 @@
 
   (vm->state).vtsN               = -1;
 
+  vm.hop_channel                 = 0;
+
   if (vm->dvd && dvdroot) {
     /* a new dvd device has been requested */
     vm_stop(vm);
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss

Reply via email to