diff options
author | sr55 <[email protected]> | 2015-05-03 17:29:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-05-03 17:29:45 +0000 |
commit | 99aa2bf7c9bfa34d1bf822d70da22243fbbdd344 (patch) | |
tree | aeda9214568a48dac6fcac2fb8902d73fe8ae378 /win/CS/HandBrakeWPF/Services | |
parent | 0be4e18bacefa6b7bc63731b4a004a6ff772af20 (diff) |
WinGui: Fix Line Endings and (StyleCop)Warnings
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7152 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
3 files changed, 5 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistFactory.cs index 804f77b19..eb38c62ad 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistFactory.cs @@ -148,7 +148,6 @@ namespace HandBrakeWPF.Services.Presets.Factories AddEncodeElement(xmlWriter, "Mp4iPodCompatible", "integer", parsed.IPod5GSupport ? "1" : "0");
AddEncodeElement(xmlWriter, "PictureAutoCrop", "integer", "1");
-
// Filters
AddEncodeElement(xmlWriter, "PictureDeblock", "integer", parsed.Deblock.ToString());
@@ -158,7 +157,6 @@ namespace HandBrakeWPF.Services.Presets.Factories AddEncodeElement(xmlWriter, "PictureDeinterlaceCustom", "string", parsed.Deinterlace == Deinterlace.Custom ? parsed.CustomDeinterlace : string.Empty);
AddEncodeElement(xmlWriter, "PictureDeinterlace", "integer", ((int)parsed.Deinterlace).ToString());
-
AddEncodeElement(xmlWriter, "PictureDenoiseFilter", "string", parsed.Denoise.ToString().ToLower());
AddEncodeElement(xmlWriter, "PictureDenoiseCustom", "string", parsed.DenoisePreset == DenoisePreset.Custom ? parsed.CustomDenoise : string.Empty);
AddEncodeElement(xmlWriter, "PictureDenoisePreset", "string", parsed.DenoisePreset.ToString().ToLower());
@@ -212,7 +210,6 @@ namespace HandBrakeWPF.Services.Presets.Factories AddEncodeElement(xmlWriter, "VideoOptionExtra", "string", parsed.ExtraAdvancedArguments);
AddEncodeElement(xmlWriter, "x264UseAdvancedOptions", "integer", parsed.ShowAdvancedTab ? "1" : "0");
-
int videoQualityType = 0;
if (parsed.VideoBitrate != null) videoQualityType = 1;
else if (parsed.Quality != null) videoQualityType = 2;
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistPresetFactory.cs index a8b0f43a3..d58e111eb 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistPresetFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/PlistPresetFactory.cs @@ -279,7 +279,6 @@ namespace HandBrakeWPF.Services.Presets.Factories preset.Task.AdvancedEncoderOptions = kvp.Value;
break;
-
// Preset Information
case "PresetBuildNumber":
preset.Version = kvp.Value;
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index c0355a3bf..b7be8bfdc 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -12,6 +12,7 @@ namespace HandBrakeWPF.Services.Presets using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+ using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
@@ -318,6 +319,7 @@ namespace HandBrakeWPF.Services.Presets catch (Exception exc)
{
// Do Nothing.
+ Debug.WriteLine(exc);
}
}
}
@@ -446,6 +448,7 @@ namespace HandBrakeWPF.Services.Presets catch (Exception exc)
{
// Do Nothing.
+ Debug.WriteLine(exc);
}
}
}
@@ -478,6 +481,7 @@ namespace HandBrakeWPF.Services.Presets catch (Exception exc)
{
// Do Nothing
+ Debug.WriteLine(exc);
}
}
@@ -500,6 +504,7 @@ namespace HandBrakeWPF.Services.Presets catch (Exception exc)
{
createBackup = true;
+ Debug.WriteLine(exc);
}
}
|