summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
diff options
context:
space:
mode:
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