From 49c3c9ae4db1bf7d50e951f01003a952b14c5f23 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 10 Dec 2009 00:17:46 +0000 Subject: [PATCH] fix dvdnav read error retry the error count was being reset on dvdnav events that didn't involve any actual reading. So we got caught in an very long loop alternating between read failures and valid events. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3022 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/dvdnav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c index 84895caca..59e1ac67e 100644 --- a/libhb/dvdnav.c +++ b/libhb/dvdnav.c @@ -1003,7 +1003,6 @@ static int hb_dvdnav_read( hb_dvd_t * e, hb_buffer_t * b ) } continue; } - error_count = 0; switch ( event ) { case DVDNAV_BLOCK_OK: @@ -1015,6 +1014,7 @@ static int hb_dvdnav_read( hb_dvd_t * e, hb_buffer_t * b ) if (chapter > 1) b->new_chap = chapter; chapter = 0; + error_count = 0; return 1; case DVDNAV_NOP: -- 2.40.0