]> granicus.if.org Git - handbrake/commitdiff
WinGui: Undo commented out code.
authorsr55 <sr55.hb@outlook.com>
Wed, 22 May 2013 20:32:51 +0000 (20:32 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 22 May 2013 20:32:51 +0000 (20:32 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/qsv@5501 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs

index 4c55da366dd9e910e511d1d98c1d154336cc8744..6833dfc36980c1b20ce20a86175309bd6cac73bf 100644 (file)
@@ -197,20 +197,20 @@ namespace HandBrake.Interop
                                throw new ArgumentException("height must be positive.");\r
                        }\r
 \r
-            //HBFunctions.hb_init(0, 0);\r
-            //IntPtr ptr = HBFunctions.hb_x264_param_unparse(\r
-            //    preset,\r
-            //    string.Join(",", tunes),\r
-            //    extraOptions,\r
-            //    profile,\r
-            //    level,\r
-            //    width,\r
-            //    height);\r
+                   HBFunctions.hb_init(0, 0);\r
+            IntPtr ptr = HBFunctions.hb_x264_param_unparse(\r
+                               preset,\r
+                               string.Join(",", tunes),\r
+                               extraOptions,\r
+                               profile,\r
+                               level,\r
+                               width,\r
+                               height);\r
 \r
-            //string x264Settings = Marshal.PtrToStringAnsi(ptr);\r
+                   string x264Settings = Marshal.PtrToStringAnsi(ptr);\r
 \r
 \r
-            return "";\r
+            return x264Settings;\r
                }\r
 \r
                /// <summary>\r