From f0448eb50ab5026ee38048a770b210f574cb1cf5 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sat, 9 Mar 2019 12:59:35 -0700 Subject: 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 --- libhb/work.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb/work.c') 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++) -- cgit v1.2.3