From c21c54cf722d9ba1377b85122bfbada5d8b0c06b Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 7 May 2012 03:34:41 +0000 Subject: libhb: fix another filter initialization problem if a filter fails to initialize, the next filter in the list got skipped git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4650 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/work.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libhb') diff --git a/libhb/work.c b/libhb/work.c index 50596093f..eac64b3b5 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -693,7 +693,7 @@ static void do_job( hb_job_t * job ) init.vrate_base = title->rate_base; init.vrate = title->rate; init.cfr = 0; - for( i = 0; i < hb_list_count( job->list_filter ); i++ ) + for( i = 0; i < hb_list_count( job->list_filter ); ) { hb_filter_object_t * filter = hb_list_item( job->list_filter, i ); if( filter->init( filter, &init ) ) @@ -702,7 +702,9 @@ static void do_job( hb_job_t * job ) filter->name ); hb_list_rem( job->list_filter, filter ); hb_filter_close( &filter ); + continue; } + i++; } job->width = init.width; job->height = init.height; -- cgit v1.2.3