summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-01-11 14:25:07 -0700
committerJohn Stebbins <[email protected]>2017-01-11 14:26:48 -0700
commit5ed4dc7ff3dfd1a19b27863e30900505e292b529 (patch)
tree1bae5bd0378acc24c40ae52fa92113a113124e1c /gtk
parent06b07f9eeb31be0554b4a729554ec5dee92794c4 (diff)
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.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index a83e5495e..62e8f2363 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);
}
}