summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-12-10 00:17:46 +0000
committerjstebbins <[email protected]>2009-12-10 00:17:46 +0000
commit49c3c9ae4db1bf7d50e951f01003a952b14c5f23 (patch)
tree711a06d0fbb6830bd9090af0386dc4ad3bd44315
parent74ba2beb7054ef274c48dd95fd82d660e9cf51d2 (diff)
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
-rw-r--r--libhb/dvdnav.c2
1 files changed, 1 insertions, 1 deletions
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: