summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/sync.c2
-rw-r--r--test/test.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 594251b0d..3c2a7ffbd 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -1655,6 +1655,8 @@ static void UpdateSearchState( hb_work_object_t * w, int64_t start )
return;
}
+ hb_get_state2(pv->job->h, &state);
+
#define p state.param.working
state.state = HB_STATE_SEARCHING;
if ( pv->job->frame_to_start )
diff --git a/test/test.c b/test/test.c
index 2a01f32e0..1026eae93 100644
--- a/test/test.c
+++ b/test/test.c
@@ -3662,8 +3662,12 @@ PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict)
hb_dict_set(range_dict, "Type", hb_value_string(range_type));
if (range_start)
hb_dict_set(range_dict, "Start", hb_value_int(range_start));
+ else
+ hb_dict_remove(range_dict, "Start");
if (range_end)
hb_dict_set(range_dict, "End", hb_value_int(range_end));
+ else
+ hb_dict_remove(range_dict, "End");
if (range_seek_points)
hb_dict_set(range_dict, "SeekPoints",
hb_value_int(range_seek_points));