diff options
author | van <[email protected]> | 2008-12-02 20:53:00 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-12-02 20:53:00 +0000 |
commit | d6272605a7947d17361cc4744dc0afed011c1142 (patch) | |
tree | 53a5c30fa3ac0b94dfcd2620167a99ae9ba4bfdc /libhb/scan.c | |
parent | 47f8d9f185afd56e21108eabe3789756bc8fe04e (diff) |
- allow titles with video but no audio.
- don't throw away previews just because we hit eof while trying to find audio info.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1993 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 26927ffbc..631fa43ef 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -168,15 +168,6 @@ static void ScanFunc( void * _data ) j++; } - /* If we don't have any audio streams left, remove the title */ - if( !hb_list_count( title->list_audio ) ) - { - hb_log("scan: ignoring title %i, no audio tracks found", title->index ); - hb_list_rem( data->list_title, title ); - free( title ); - continue; - } - i++; } @@ -463,6 +454,10 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title ) { if ( !hb_stream_read(data->stream,buf_ps) ) { + if ( vid_buf ) + { + break; + } hb_log( "Warning: Could not read data for preview %d, skipped", i + 1 ); goto skip_preview; } |