diff options
author | jstebbins <[email protected]> | 2008-07-25 21:29:18 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-07-25 21:29:18 +0000 |
commit | e3298b9003a7ee6070842516818bc08d8b0a65ed (patch) | |
tree | a4ed481d4ad549a614a297f086ea31345132d0d9 | |
parent | df7fa5a767257e9a5f2dab3bc4ac46d146205e34 (diff) |
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
-rw-r--r-- | gtk/src/hb-backend.c | 14 |
1 files changed, 14 insertions, 0 deletions
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; } |