]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix application of SRT offset
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 29 Mar 2017 16:44:51 +0000 (10:44 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 29 Mar 2017 16:44:51 +0000 (10:44 -0600)
gtk/src/subtitlehandler.c

index f9833a5a727f0caa945a18aa93b860dded7db54e..ca614b7d1f935b26d86f48a1f8beacc9ac524c29 100644 (file)
@@ -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