Reset vm->hop_channel while resetting everything else in vm_reset
authorErik Hovland <erik@hovland.org>
Mon, 1 Jul 2013 21:40:20 +0000 (14:40 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 20 Aug 2013 09:38:18 +0000 (11:38 +0200)
commit543c0602556050e62d7fa0cc7de08017472a6633
tree340ac6c63ac7fc8e41304eeab6e59dbe5eaf6bc9
parent3b181d3e8c679294410921a061dee8969c75d140
Reset vm->hop_channel while resetting everything else in vm_reset

From the patch report:
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!
src/vm/vm.c