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:32:24 -0700
commit23efc8a2bea68228d579703a1b1083ab3f9dc9f3 (patch)
tree6443ceb64d0e0ffc5af418d4b07487f50a0a3bdb /gtk
parent9e11ad090e1e9d1e55d8faa44b8fee435f89efc9 (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. (cherry picked from commit 5ed4dc7ff3dfd1a19b27863e30900505e292b529)
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 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);
}
}