]> granicus.if.org Git - handbrake/commitdiff
fix setting sequence_id of final job status
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 9 Mar 2019 19:59:35 +0000 (12:59 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 9 Mar 2019 19:59:35 +0000 (12:59 -0700)
current_job can't be NULL'd till after the status is set because the job
contains the current sequence_id

libhb/work.c

index 7c35425018853f8d8234260f7854c7dd9110bb24..3d3b3c7305cc71975d4db0b7024a6d9ebf0f99ce 100644 (file)
@@ -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++)