From: sr55 Date: Sat, 2 Feb 2008 15:34:27 +0000 (+0000) Subject: WinGui: X-Git-Tag: 0.9.2~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdc741bb0ce20aabffe06fac42270aac98b8f2c6;p=handbrake WinGui: - now using C#.Net 08 - Fixed bug with VFR setting framerate when enabled. - Fixed potential framerate bug (passing framerate without -r to the CLI) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1245 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index b4b2070bb..ec6ebeefb 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -498,6 +498,7 @@ namespace Handbrake.Functions string vidQSetting = ""; string twoPassEncoding = ""; string videoFramerate = mainWindow.drp_videoFramerate.Text; + string vid_frame_rate = ""; string turboH264 = ""; string largeFile = ""; string denoise = ""; @@ -528,9 +529,12 @@ namespace Handbrake.Functions twoPassEncoding = " -2 "; if (videoFramerate == "Automatic") - videoFramerate = ""; + vid_frame_rate = ""; else - videoFramerate = " -r " + videoFramerate; + { + if (!mainWindow.check_vfr.Checked) + vid_frame_rate = " -r " + videoFramerate; + } if (mainWindow.check_turbo.Checked) turboH264 = " -T "; @@ -565,7 +569,7 @@ namespace Handbrake.Functions optimizeMP4 = " -O "; - string queryVideoSettings = videoBitrate + videoFilesize + vidQSetting + twoPassEncoding + videoFramerate + turboH264 + ipodAtom + optimizeMP4 + largeFile + denoise; + string queryVideoSettings = videoBitrate + videoFilesize + vidQSetting + twoPassEncoding + vid_frame_rate + turboH264 + ipodAtom + optimizeMP4 + largeFile + denoise; #endregion // Audio Settings Tab @@ -699,7 +703,7 @@ namespace Handbrake.Functions { string path = Path.Combine(Path.GetTempPath(), "chapters.csv"); - ChapterMarkers = " --markers=" + path; + ChapterMarkers = " --markers=" + "\"" + path + "\""; } } diff --git a/win/C#/HandBrakeCS.csproj b/win/C#/HandBrakeCS.csproj index 1e545d05e..61db8ab09 100644 --- a/win/C#/HandBrakeCS.csproj +++ b/win/C#/HandBrakeCS.csproj @@ -1,8 +1,8 @@ - + Debug AnyCPU - 8.0.50727 + 9.0.21022 2.0 {A2923D42-C38B-4B12-8CBA-B8D93D6B13A3} WinExe @@ -13,6 +13,27 @@ Handbrake.Program LocalIntranet false + + + + + 2.0 + v2.0 + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true true @@ -61,6 +82,12 @@ x86 + + 3.0 + + + 3.0 + @@ -68,6 +95,15 @@ + + 3.0 + + + 3.0 + + + 3.0 + @@ -253,6 +289,28 @@ False + + + False + .NET Framework 2.0 %28x86%29 + false + + + False + .NET Framework 3.0 %28x86%29 + false + + + False + .NET Framework 3.5 + true + + + False + Windows Installer 3.1 + true + +