]> granicus.if.org Git - handbrake/commitdiff
hb_json: add new hb_state_t fields
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 25 Jun 2019 23:05:18 +0000 (16:05 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 25 Jun 2019 23:06:10 +0000 (16:06 -0700)
libhb/hb_json.c

index 70fbe42847fbe361fd8677e837ee4788bb72cba0..89a4da479a7511b34a1cc42da701f28828505ded 100644 (file)
@@ -77,7 +77,8 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state)
     case HB_STATE_PAUSED:
     case HB_STATE_SEARCHING:
         dict = json_pack_ex(&error, 0,
-            "{s:o, s{s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o}}",
+            "{s:o, s{s:o, s:o, s:o, s:o, s:o, s:o,"
+                   " s:o, s:o, s:o, s:o, s:o, s:o}}",
             "State", hb_value_string(state_s),
             "Working",
                 "Progress",     hb_value_double(state->param.working.progress),
@@ -86,8 +87,10 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state)
                 "PassCount",    hb_value_int(state->param.working.pass_count),
                 "Rate",         hb_value_double(state->param.working.rate_cur),
                 "RateAvg",      hb_value_double(state->param.working.rate_avg),
+                "ETASeconds",   hb_value_int(state->param.working.eta_seconds),
                 "Hours",        hb_value_int(state->param.working.hours),
                 "Minutes",      hb_value_int(state->param.working.minutes),
+                "Paused",       hb_value_int(state->param.working.paused),
                 "Seconds",      hb_value_int(state->param.working.seconds),
                 "SequenceID",   hb_value_int(state->sequence_id));
         break;