diff options
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/batch.c | 7 | ||||
-rw-r--r-- | libhb/internal.h | 3 | ||||
-rw-r--r-- | libhb/scan.c | 5 |
3 files changed, 4 insertions, 11 deletions
diff --git a/libhb/batch.c b/libhb/batch.c index 9af32393a..02c79893a 100644 --- a/libhb/batch.c +++ b/libhb/batch.c @@ -120,7 +120,7 @@ int hb_batch_title_count( hb_batch_t * d ) /*********************************************************************** * hb_batch_title_scan **********************************************************************/ -hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t, uint64_t min_duration ) +hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t ) { hb_title_t * title; @@ -145,11 +145,6 @@ hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t, uint64_t min_duration ) title = hb_stream_title_scan( stream, title ); hb_stream_close( &stream ); - if( title != NULL && title->duration < min_duration ) - { - hb_log( "batch: ignoring title (too short)" ); - hb_title_close(&title); - } return title; } diff --git a/libhb/internal.h b/libhb/internal.h index dde908397..1284a1ff0 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -303,8 +303,7 @@ typedef struct hb_batch_s hb_batch_t; hb_batch_t * hb_batch_init( hb_handle_t *h, char * path ); void hb_batch_close( hb_batch_t ** _d ); int hb_batch_title_count( hb_batch_t * d ); -hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t, - uint64_t min_duration ); +hb_title_t * hb_batch_title_scan( hb_batch_t * d, int t ); /*********************************************************************** * dvd.c diff --git a/libhb/scan.c b/libhb/scan.c index a6c5d2eae..b034acc88 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -155,7 +155,7 @@ static void ScanFunc( void * _data ) if( data->title_index ) { /* Scan this title only */ - title = hb_batch_title_scan(data->batch, data->title_index, 0); + title = hb_batch_title_scan(data->batch, data->title_index); if ( title ) { hb_list_add( data->title_set->list_title, title ); @@ -169,8 +169,7 @@ static void ScanFunc( void * _data ) hb_title_t * title; UpdateState1(data, i + 1); - title = hb_batch_title_scan(data->batch, i + 1, - data->min_title_duration); + title = hb_batch_title_scan(data->batch, i + 1); if ( title != NULL ) { hb_list_add( data->title_set->list_title, title ); |