comparison vm/vm.c @ 435:29d4a43c8c86 src

Reset vm->hop_channel while resetting everything else in vm_reset 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. Patch submitted by Richard (peper03 AT yahoo DOT com). Thanks!
author rathann
date Sun, 10 Nov 2013 11:38:58 +0000
parents 1c7c804e9c82
children 04cb2d6e4f93
comparison
equal deleted inserted replaced
434:264c5b900bfb 435:29d4a43c8c86
347 (vm->state).rsm_cellN = 0; 347 (vm->state).rsm_cellN = 0;
348 (vm->state).rsm_blockN = 0; 348 (vm->state).rsm_blockN = 0;
349 349
350 (vm->state).vtsN = -1; 350 (vm->state).vtsN = -1;
351 351
352 vm->hop_channel = 0;
353
352 if (vm->dvd && dvdroot) { 354 if (vm->dvd && dvdroot) {
353 /* a new dvd device has been requested */ 355 /* a new dvd device has been requested */
354 vm_stop(vm); 356 vm_stop(vm);
355 } 357 }
356 if (!vm->dvd) { 358 if (!vm->dvd) {