diff options
author | John Stebbins <[email protected]> | 2020-02-08 15:47:28 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2020-02-08 15:47:59 -0800 |
commit | 8be08582b54e6f9ea02b591a72b76c5e09f64032 (patch) | |
tree | 0dd220fb66132332219b4f1694416dba7ecc32b0 /gtk | |
parent | db633f77eba86a7605068af0220fc32f713f5f48 (diff) |
LinGui: fix PtoP fractional second times
Diffstat (limited to 'gtk')
-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 95a4f464a..6ff65366a 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -3260,18 +3260,18 @@ start_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, "end_point", ghb_int_value(start+1)); - end = start + 1; + end = start + 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) { |