diff options
author | John Stebbins <[email protected]> | 2020-02-08 16:35:18 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2020-02-08 16:35:18 -0800 |
commit | 24914e5a85d61f8a184d37a7b6c1c1413eb37a84 (patch) | |
tree | e2fe41ea5f62522e4e0f59addb005511130d40d6 | |
parent | 8be08582b54e6f9ea02b591a72b76c5e09f64032 (diff) |
LinGui: fix PtoP fractional end times in seconds
oops, previous commit only handled start times correctly
-rw-r--r-- | gtk/src/callbacks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 6ff65366a..0eb8850a7 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -3324,18 +3324,18 @@ end_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud) } else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 1) { - start = ghb_dict_get_int(ud->settings, "start_point"); - end = ghb_dict_get_int(ud->settings, "end_point"); + start = ghb_dict_get_double(ud->settings, "start_point") * 90000; + end = ghb_dict_get_double(ud->settings, "end_point") * 90000; if (start >= end) { ghb_ui_update(ud, "start_point", ghb_int_value(end-1)); - start = end - 1; + start = end - 90000; } ghb_check_dependency(ud, widget, NULL); update_title_duration(ud); - ghb_dict_set_int(range, "Start", start * 90000); - ghb_dict_set_int(range, "End", end * 90000); + ghb_dict_set_int(range, "Start", start); + ghb_dict_set_int(range, "End", end); } else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 2) { |