[DVDnav-discuss] [PATCH] hop_channel not reset when vm_reset is called

Richard peper03 at yahoo.com
Tue Jul 2 11:35:17 CEST 2013


On 02/07/13 00:40, Erik Hovland wrote:
> On Mon, Jul 1, 2013 at 1:55 AM, Richard <peper03 at yahoo.com> wrote:
>> 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.
>
> Maybe vm->hop_channel = 0;?

Doh! Sorry, yes!  I made the change in Myth's local copy of libdvdnav to 
ease testing.  Obviously typed it out again rather than cut'n'paste.

Regards,

Richard.


More information about the DVDnav-discuss mailing list