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!


git-svn-id: svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src@1275 625a9de0-492d-0410-920c-a7e632af1907
Avoid a crash when program number is zero.

This is a workaround for a crash at:
cellnr = pgc->program_map[ptt[i].pgn-1];
when playing "The Dictator".

Based on a patch by Ivan Kalvachev < ikalvachev AT gmail DOT com>.



git-svn-id: svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src@1279 625a9de0-492d-0410-920c-a7e632af1907
Check for out-of-bounds values for pgcn

Fixes a crash in dvdnav_describe_title_chapters() with vlc, lsdvd, and
other video players caused by an invalid value for pgcn.  This occurs
with the "Inside Man" DVD.

Based on patches by Bryce Harrington <bryce AT canonical DOT com>
and Vincent Mussard <frodon AT wanadoo DOT fr>


git-svn-id: svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src@1284 625a9de0-492d-0410-920c-a7e632af1907
win32: handle better dvdnav map files on win32
added gitignore from git svn show-ignore