- 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
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++;
}
{
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;
}