From e3298b9003a7ee6070842516818bc08d8b0a65ed Mon Sep 17 00:00:00 2001 From: jstebbins Date: Fri, 25 Jul 2008 21:29:18 +0000 Subject: LinGui: validate that vfr is enabled when decomb is enabled warn user if it is not. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1580 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gtk') diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 2beba26ea..11f210bb3 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -2135,6 +2135,20 @@ ghb_validate_video(signal_user_data_t *ud) vcodec = HB_VCODEC_XVID; ghb_ui_update_int(ud, "video_codec", vcodec); } + gboolean decomb = ghb_settings_get_bool(settings, "decomb"); + gboolean vfr = ghb_settings_get_bool(settings, "variable_frame_rate"); + if (decomb && !vfr) + { + message = g_strdup_printf( + "Decomb is intended to be used in conjunction\n" + "with variable frame rate.\n\n" + "Would you like me to enable VFR for you?"); + if (ghb_message_dialog(GTK_MESSAGE_WARNING, message, "No", "Yes")) + { + ghb_ui_update_int(ud, "variable_frame_rate", TRUE); + } + g_free(message); + } return TRUE; } -- cgit v1.2.3