diff options
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 01060c01f..b3d0744d7 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -106,6 +106,13 @@ static void work_func( void * _work ) // Expand json string to full job struct hb_job_t *new_job = hb_json_to_job(job->h, job->json); + if (new_job == NULL) + { + hb_job_close(&job); + hb_list_close(&passes); + *work->die = 1; + break; + } new_job->h = job->h; hb_job_close(&job); job = new_job; |