diff options
author | jstebbins <[email protected]> | 2011-07-08 22:22:35 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-07-08 22:22:35 +0000 |
commit | 3fceadac91bbeb330dbd99dd79698726a643f671 (patch) | |
tree | 1e95477fdbb68d9a9e700aec73156610a7123e05 /libhb | |
parent | 75624ce100eb47a98e6d01ecf952f1b801a36055 (diff) |
Fix crash when scanning True Grit
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4090 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/dvdnav.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c index fa69dbb5b..a0f0714d4 100644 --- a/libhb/dvdnav.c +++ b/libhb/dvdnav.c @@ -1273,9 +1273,12 @@ static int hb_dvdnav_main_feature( hb_dvd_t * e, hb_list_t * list_title ) } index = find_title( list_title, longest_fallback ); title = hb_list_item( list_title, index ); - hb_deep_log( 2, "dvdnav: Longest title %d duration %02d:%02d:%02d", - longest_fallback, title->hours, title->minutes, - title->seconds ); + if ( title ) + { + hb_deep_log( 2, "dvdnav: Longest title %d duration %02d:%02d:%02d", + longest_fallback, title->hours, title->minutes, + title->seconds ); + } dvdnav_reset( d->dvdnav ); skip_some( d->dvdnav, 500 ); |