From 23efc8a2bea68228d579703a1b1083ab3f9dc9f3 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 11 Jan 2017 14:25:07 -0700 Subject: json: revise range "End" for time and frame ranges "End" was a duration. It is now the actual "End" position in 90khz ticks or frames. (cherry picked from commit 5ed4dc7ff3dfd1a19b27863e30900505e292b529) --- gtk/src/callbacks.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gtk') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 28ac08f9a..511d4c3ca 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2478,7 +2478,7 @@ start_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud) update_title_duration(ud); ghb_dict_set_int(range, "Start", start * 90000); - ghb_dict_set_int(range, "End", (end - start) * 90000); + ghb_dict_set_int(range, "End", end * 90000); } else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 2) { @@ -2492,8 +2492,8 @@ start_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_check_dependency(ud, widget, NULL); update_title_duration(ud); - ghb_dict_set_int(range, "Start", start - 1); - ghb_dict_set_int(range, "End", end - start + 1); + ghb_dict_set_int(range, "Start", start); + ghb_dict_set_int(range, "End", end); } } @@ -2542,7 +2542,7 @@ end_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud) update_title_duration(ud); ghb_dict_set_int(range, "Start", start * 90000); - ghb_dict_set_int(range, "End", (end - start) * 90000); + ghb_dict_set_int(range, "End", end * 90000); } else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 2) { @@ -2556,8 +2556,8 @@ end_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_check_dependency(ud, widget, NULL); update_title_duration(ud); - ghb_dict_set_int(range, "Start", start - 1); - ghb_dict_set_int(range, "End", end - start + 1); + ghb_dict_set_int(range, "Start", start); + ghb_dict_set_int(range, "End", end); } } -- cgit v1.2.3