From 7c07f54f7ce2fe62bd289f328b1c2ea05d3eb041 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 10 Jul 2008 19:03:31 +0000 Subject: LinGui: fix minor problem in setting up decomb git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1564 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gtk/src/hb-backend.c') diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index c36e182ed..7ac6bfff2 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -2460,7 +2460,10 @@ ghb_add_job(job_settings_t *js, gint unique_id) gboolean decomb = ghb_settings_get_bool(settings, "decomb"); gint deint = ghb_settings_get_int(settings, "deinterlace"); - job->deinterlace = (deint == 0) ? 0 : 1; + if (!decomb) + job->deinterlace = (deint == 0) ? 0 : 1; + else + job->deinterlace = 0; job->grayscale = ghb_settings_get_bool(settings, "grayscale"); gboolean anamorphic = ghb_settings_get_bool(settings, "anamorphic"); @@ -2499,7 +2502,7 @@ ghb_add_job(job_settings_t *js, gint unique_id) hb_filter_decomb.settings = "1:2:6:9:40:16:16"; hb_list_add( job->filters, &hb_filter_decomb ); } - if( !decomb && job->deinterlace ) + if( job->deinterlace ) { hb_filter_deinterlace.settings = (gchar*)ghb_settings_get_string(settings, "deinterlace"); hb_list_add( job->filters, &hb_filter_deinterlace ); -- cgit v1.2.3