diff options
author | Damiano Galassi <[email protected]> | 2019-02-03 08:28:01 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-02-05 19:02:07 +0100 |
commit | a8ef28a582283d34fda6dd81f4be60f810e0865d (patch) | |
tree | 96aa8a43066b63bf618a80fcc266c7fbdc92e9ec /libhb/work.c | |
parent | c59a6c4cbdc7abdfe6012b2be59322ea75e976ee (diff) |
libhb: do not set HB_STATE_WORKDONE before all the work threads are closed.
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/work.c b/libhb/work.c index 6c97af5a0..7c3542501 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -77,7 +77,7 @@ static void InitWorkState(hb_handle_t *h, int pass_id, int pass, int pass_count) } -static void SetWorkdoneState(hb_job_t *job) +static void SetWorkStateInfo(hb_job_t *job) { hb_state_t state; @@ -88,7 +88,6 @@ static void SetWorkdoneState(hb_job_t *job) } hb_get_state2(job->h, &state); - state.state = HB_STATE_WORKDONE; state.param.working.error = *job->done_error; state.param.working.sequence_id = job->sequence_id; @@ -155,7 +154,7 @@ static void work_func( void * _work ) do_job( job ); *(work->current_job) = NULL; } - SetWorkdoneState(job); + SetWorkStateInfo(job); // Clean job passes for (pass = 0; pass < pass_count; pass++) |