diff options
author | jstebbins <[email protected]> | 2009-06-29 23:19:39 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-06-29 23:19:39 +0000 |
commit | 338a22814d92fb193703b90980840b6909c29e18 (patch) | |
tree | ba9c8d2107abe7402b8e1e8a387dade2fc093fc9 /libhb | |
parent | 5fd1f697d13f1969bf28e706a2e5df0e5c3c2459 (diff) |
dvdnav:
- revert read error recovery
Attempting to seek one sector forward doesn't work. dvdnav rounds the seek
request *down* to the nearest vobu. So the seek actually goes backwards.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2644 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/dvdnav.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c index fa6aa8344..378c1334b 100644 --- a/libhb/dvdnav.c +++ b/libhb/dvdnav.c @@ -971,7 +971,6 @@ static int hb_dvdnav_read( hb_dvd_t * e, hb_buffer_t * b ) hb_dvdnav_t * d = &(e->dvdnav); int result, event, len; int chapter = 0; - int error_count = 0; while ( 1 ) { @@ -983,21 +982,8 @@ static int hb_dvdnav_read( hb_dvd_t * e, hb_buffer_t * b ) if ( result == DVDNAV_STATUS_ERR ) { hb_log("dvdnav: Read Error, %s", dvdnav_err_to_string(d->dvdnav)); - if (dvdnav_sector_search(d->dvdnav, 1, SEEK_CUR) != DVDNAV_STATUS_OK) - { - hb_error( "dvd: dvdnav_sector_search failed - %s", - dvdnav_err_to_string(d->dvdnav) ); - return 0; - } - error_count++; - if (error_count > 10) - { - hb_log("dvdnav: Error, too many consecutive read errors"); - return 0; - } - continue; + return 0; } - error_count = 0; switch ( event ) { case DVDNAV_BLOCK_OK: |