diff options
author | jstebbins <[email protected]> | 2012-04-15 16:43:16 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-04-15 16:43:16 +0000 |
commit | 8c2eff9199b8e98e7b39fa236e6759f689d7bfda (patch) | |
tree | 1fa48341f0d8d20806ca4106d3e9c7c66a2a5330 /libhb/work.c | |
parent | 123e871e306f0c962a46a48ba696066647d526a8 (diff) |
libhb: fix crash when subtitle render filter fails to initialize
This can happen for non-fatal reasons when doing foreign audio search.
This makes all filter init failures non-fatal. We may want to introduce
fatal errors at some point. I need to inspect all the filters and see
if there are any errors that really must be fatal.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4600 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libhb/work.c b/libhb/work.c index 7ea9878bf..f9d7bf656 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -550,9 +550,10 @@ static void do_job( hb_job_t * job ) hb_filter_object_t * filter = hb_list_item( job->list_filter, i ); if( filter->init( filter, &init ) ) { - hb_error( "Failure to initialise filter '%s'", filter->name ); - *job->die = 1; - goto cleanup; + hb_log( "Failure to initialise filter '%s', disabling", + filter->name ); + hb_list_rem( job->list_filter, filter ); + hb_filter_close( &filter ); } } job->width = init.width; |