summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-08-07 13:34:36 -0700
committerJohn Stebbins <[email protected]>2018-08-07 13:34:36 -0700
commitd80a17590a1aa6c65de0ef0f2e6e0bd273f4753e (patch)
tree9d12d136483ea460c1923cc8430d5c4ccdaef647 /libhb/common.h
parent1fbea6b770f6691d4a07b60d1e370fa70c483473 (diff)
fix race in getting sequence_id of completed job
The sequence_id was only available for the WORKING state and not the WORKDONE state. But frontends poll for status periodically and can miss all status updates for the WORKING state if the file is very short or an error occurs early during transcoding. When WORKING status is missed, there was no way to know the sequence_id associated with the WORKDONE status.
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 7ed82c65f..4fa370c03 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -1097,7 +1097,7 @@ struct hb_state_s
struct
{
- /* HB_STATE_WORKING */
+ /* HB_STATE_WORKING || HB_STATE_SEARCHING || HB_STATE_WORKDONE */
#define HB_PASS_SUBTITLE -1
#define HB_PASS_ENCODE 0
#define HB_PASS_ENCODE_1ST 1 // Some code depends on these values being
@@ -1112,13 +1112,8 @@ struct hb_state_s
int minutes;
int seconds;
int sequence_id;
- } working;
-
- struct
- {
- /* HB_STATE_WORKDONE */
hb_error_code error;
- } workdone;
+ } working;
struct
{