]> granicus.if.org Git - handbrake/commitdiff
MacGui: Fix the deblock filter for live previews.
authordynaflash <dynaflashtech@gmail.com>
Mon, 1 Dec 2008 04:54:51 +0000 (04:54 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Mon, 1 Dec 2008 04:54:51 +0000 (04:54 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1980 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index bdebb69548023eabb7098fcc6ced417d8e1591e7..0f98bfe63f3f47dd1e95693528003b7a35c38521 100644 (file)
@@ -2823,8 +2823,14 @@ fWorkingCount = 0;
        }
     
     /* Deblock  (uses pp7 default) */
-    if ([fPictureController deblock])
+    /* NOTE: even though there is a valid deblock setting of 0 for the filter, for 
+     * the macgui's purposes a value of 0 actually means to not even use the filter
+     * current hb_filter_deblock.settings valid ranges are from 5 - 15 
+     */
+    if ([fPictureController deblock] != 0)
     {
+        NSString *deblockStringValue = [NSString stringWithFormat: @"%d",[fPictureController deblock]];
+        hb_filter_deblock.settings = (char *) [deblockStringValue UTF8String];
         hb_list_add( job->filters, &hb_filter_deblock );
     }