diff options
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
13 files changed, 22 insertions, 20 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs index 983af2e7a..c86bc5ff6 100644 --- a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs +++ b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs @@ -79,7 +79,6 @@ namespace HandBrake.ApplicationServices.Factories preset.Task.MaxHeight = preset.Task.Width;
}
-
return preset;
}
diff --git a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs index a99692873..ec805ab9d 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs @@ -133,7 +133,6 @@ namespace HandBrake.ApplicationServices.Model this.FastDecode = task.FastDecode;
this.ExtraAdvancedArguments = task.ExtraAdvancedArguments;
-
this.PreviewStartAt = task.PreviewStartAt;
this.PreviewDuration = task.PreviewDuration;
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs index ae0b66974..157be8920 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs @@ -63,6 +63,9 @@ namespace HandBrake.ApplicationServices.Model.Encoding [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
private Audio scannedTrack;
+ /// <summary>
+ /// The is default.
+ /// </summary>
private bool isDefault;
#endregion
diff --git a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs index 68f32011a..893ee6992 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs @@ -76,12 +76,12 @@ namespace HandBrake.ApplicationServices.Model }
/// <summary>
- /// Gets the task.
+ /// Gets or sets the task.
/// </summary>
public EncodeTask Task { get; set; }
/// <summary>
- /// Gets the configuration.
+ /// Gets or sets the configuration.
/// </summary>
public HBConfiguration Configuration { get; set; }
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs index 720330c50..d5ee86555 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Base/EncodeBase.cs @@ -290,7 +290,7 @@ namespace HandBrake.ApplicationServices.Services.Base return null;
}
- catch (Exception exc)
+ catch (Exception)
{
return null;
}
@@ -371,7 +371,7 @@ namespace HandBrake.ApplicationServices.Services.Base }
}
}
- catch (Exception exc)
+ catch (Exception)
{
// Do Nothing.
}
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs index 61bb1b575..42b066ee1 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Encode.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Encode.cs @@ -258,7 +258,7 @@ namespace HandBrake.ApplicationServices.Services this.HbProcess.CancelOutputRead();
this.ShutdownFileWriter();
}
- catch (Exception exc)
+ catch (Exception)
{
// This exception doesn't warrent user interaction, but it should be logged (TODO)
}
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs index 28754e15c..167394764 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs @@ -98,7 +98,7 @@ namespace HandBrake.ApplicationServices.Services HandBrakeUtils.MessageLogged += this.HandBrakeInstanceMessageLogged;
HandBrakeUtils.ErrorLogged += this.HandBrakeInstanceErrorLogged;
}
- catch (Exception exc)
+ catch (Exception)
{
// Do nothing.
}
@@ -178,7 +178,7 @@ namespace HandBrake.ApplicationServices.Services this.scanLog.Dispose();
instance.Dispose();
}
- catch (Exception exc)
+ catch (Exception)
{
// Do Nothing
}
diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs index b0cfc9a74..7bc569ed7 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs @@ -440,7 +440,7 @@ namespace HandBrake.ApplicationServices.Services }
}
}
- catch (Exception exc)
+ catch (Exception)
{
RecoverFromCorruptedPresetFile(this.builtInPresetFile);
this.UpdateBuiltInPresets();
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs b/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs index e7f4990bc..39dc86471 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/ServerService.cs @@ -87,7 +87,6 @@ namespace HandBrake.ApplicationServices.Services encodeService.ProcessLogs(destination, configuration);
}
-
/// <summary>
/// Start the service
/// </summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Settings.StyleCop b/win/CS/HandBrake.ApplicationServices/Settings.StyleCop index 99c98c116..1cbff0cc9 100644 --- a/win/CS/HandBrake.ApplicationServices/Settings.StyleCop +++ b/win/CS/HandBrake.ApplicationServices/Settings.StyleCop @@ -1,4 +1,7 @@ <StyleCopSettings Version="105">
+ <GlobalSettings>
+ <BooleanProperty Name="AutoCheckForUpdate">False</BooleanProperty>
+ </GlobalSettings>
<Analyzers>
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
<Rules>
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs b/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs index 371ef128f..78e8335c8 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs @@ -84,9 +84,8 @@ namespace HandBrake.ApplicationServices.Utilities {
return val;
}
-
- if (insensitiveCase && currDescription.ToLower() == description.ToLower() ||
- currDisplay.ToLower() == description.ToLower())
+
+ if (insensitiveCase && currDescription.ToLower() == description.ToLower() || currDisplay.ToLower() == description.ToLower())
{
return val;
}
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs b/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs index 48212b519..78320f1fe 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs @@ -43,7 +43,6 @@ namespace HandBrake.ApplicationServices.Utilities #region Public Methods
-
/// <summary>
/// Load a plist file.
/// </summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs index 5552f1941..b1db2fcaa 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs @@ -263,10 +263,12 @@ namespace HandBrake.ApplicationServices.Utilities if (task.Height.HasValue && task.Height != 0) query += string.Format(" -l {0}", task.Height);
}
- //if (task.HasCropping)
- //{
- query += string.Format(" --crop {0}:{1}:{2}:{3}", task.Cropping.Top, task.Cropping.Bottom, task.Cropping.Left, task.Cropping.Right);
- //}
+ query += string.Format(
+ " --crop {0}:{1}:{2}:{3}",
+ task.Cropping.Top,
+ task.Cropping.Bottom,
+ task.Cropping.Left,
+ task.Cropping.Right);
switch (task.Anamorphic)
{
@@ -442,7 +444,6 @@ namespace HandBrake.ApplicationServices.Utilities query += string.Format(" -b {0}", task.VideoBitrate.Value);
break;
case VideoEncodeRateType.ConstantQuality:
- double value;
switch (task.VideoEncoder)
{
case VideoEncoder.FFMpeg:
|