summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-05-07 03:34:41 +0000
committerjstebbins <[email protected]>2012-05-07 03:34:41 +0000
commitc21c54cf722d9ba1377b85122bfbada5d8b0c06b (patch)
tree8afac8ec64e16ddd14c481328ecc93b49c753344
parent2f9788338e0b48bc012298c9d7ac05ae98b6bdf6 (diff)
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
-rw-r--r--libhb/work.c4
1 files changed, 3 insertions, 1 deletions
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;