summaryrefslogtreecommitdiffstats
path: root/gtk/src/videohandler.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-09-12 12:43:11 -0700
committerJohn Stebbins <[email protected]>2017-11-06 08:19:49 -0800
commitd024e58390c5900d7badefa298f803cade8f356c (patch)
treed4984dc3e3d2769af4fb6c0204ff8e2a193be9c0 /gtk/src/videohandler.c
parentb64e2ff7ad7aaa500f4927998f67c7c29070bd5a (diff)
LinGui: Reorgainize Summary pane
Synching up with https://github.com/HandBrake/HandBrake/issues/833
Diffstat (limited to 'gtk/src/videohandler.c')
-rw-r--r--gtk/src/videohandler.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/gtk/src/videohandler.c b/gtk/src/videohandler.c
index 7e23f120b..0219e22cf 100644
--- a/gtk/src/videohandler.c
+++ b/gtk/src/videohandler.c
@@ -71,6 +71,7 @@ vcodec_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
ghb_widget_to_setting(ud->settings, widget);
ghb_check_dependency(ud, widget, NULL);
ghb_show_container_options(ud);
+ ghb_update_summary_info(ud);
ghb_clear_presets_selection(ud);
ghb_live_reset(ud);
@@ -330,3 +331,35 @@ format_video_preset_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
return g_strdup_printf(" %-12s", "ERROR");
}
+G_MODULE_EXPORT void
+framerate_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
+{
+ ghb_widget_to_setting(ud->settings, widget);
+ ghb_update_summary_info(ud);
+
+ if (ghb_settings_video_framerate_rate(ud->settings, "VideoFramerate") != 0)
+ {
+ if (!ghb_dict_get_bool(ud->settings, "VideoFrameratePFR"))
+ {
+ ghb_ui_update(ud, "VideoFramerateCFR", ghb_boolean_value(TRUE));
+ }
+ }
+ if (ghb_settings_video_framerate_rate(ud->settings, "VideoFramerate") == 0 &&
+ ghb_dict_get_bool(ud->settings, "VideoFrameratePFR"))
+ {
+ ghb_ui_update(ud, "VideoFramerateVFR", ghb_boolean_value(TRUE));
+ }
+ ghb_check_dependency(ud, widget, NULL);
+ ghb_clear_presets_selection(ud);
+ ghb_live_reset(ud);
+}
+
+G_MODULE_EXPORT void
+framerate_mode_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
+{
+ ghb_widget_to_setting(ud->settings, widget);
+ ghb_update_summary_info(ud);
+ ghb_check_dependency(ud, widget, NULL);
+ ghb_clear_presets_selection(ud);
+ ghb_live_reset(ud);
+}