]> 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:45:50 +0000 (10:45 -0600)
(cherry picked from commit b5714363107a3ee189c92931d5687a19f48f6d95)

gtk/src/subtitlehandler.c

index 35d0af10b6f8668add72c6b33205feb051c6ce26..185a1433e95022132bd4ae1b191967cfdc56b886 100644 (file)
@@ -875,10 +875,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