summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-03-29 10:44:51 -0600
committerJohn Stebbins <[email protected]>2017-03-29 10:44:51 -0600
commitb5714363107a3ee189c92931d5687a19f48f6d95 (patch)
treed5619da868733b558d02138d64fad6d92cfb4eb8 /gtk/src/subtitlehandler.c
parentd2931487d39e433ad55737591d77aa66fb692aa8 (diff)
LinGui: fix application of SRT offset
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r--gtk/src/subtitlehandler.c6
1 files 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