From b5714363107a3ee189c92931d5687a19f48f6d95 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 29 Mar 2017 10:44:51 -0600 Subject: [PATCH] LinGui: fix application of SRT offset --- gtk/src/subtitlehandler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c index f9833a5a7..ca614b7d1 100644 --- a/gtk/src/subtitlehandler.c +++ b/gtk/src/subtitlehandler.c @@ -873,10 +873,10 @@ G_MODULE_EXPORT void srt_offset_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { ghb_widget_to_setting(ud->settings, widget); - ghb_check_dependency(ud, widget, NULL); + GhbValue *val = ghb_widget_value(widget); + subtitle_update_setting(ghb_value_xform(val, GHB_INT), "Offset", ud); - int64_t offset = ghb_dict_get_int(ud->settings, "SrtOffset"); - srt_setting_update(ghb_int_value_new(offset), "Offset", ud); + ghb_check_dependency(ud, widget, NULL); } G_MODULE_EXPORT void -- 2.40.0