From: John Stebbins Date: Sat, 9 Mar 2019 19:59:35 +0000 (-0700) Subject: fix setting sequence_id of final job status X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0448eb50ab5026ee38048a770b210f574cb1cf5;p=handbrake fix setting sequence_id of final job status current_job can't be NULL'd till after the status is set because the job contains the current sequence_id --- diff --git a/libhb/work.c b/libhb/work.c index 7c3542501..3d3b3c730 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -152,9 +152,9 @@ static void work_func( void * _work ) *(work->current_job) = job; InitWorkState(job->h, job->pass_id, pass + 1, pass_count); do_job( job ); - *(work->current_job) = NULL; } SetWorkStateInfo(job); + *(work->current_job) = NULL; // Clean job passes for (pass = 0; pass < pass_count; pass++)