summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-01-25 19:46:56 +0000
committersr55 <[email protected]>2015-01-25 19:46:56 +0000
commit9545f5c9b6c3160b0e6cba9344232cb9e1493aaf (patch)
tree03aaf141b588c92dd0796d3f272cb5dd09775949 /win/CS/HandBrake.ApplicationServices
parent2f061ec629aaf35dd2e119a859da0cb6c29b0ca3 (diff)
WinGui: Fix a object reference issue with the ScannedSource in the QueueTask object. This could lead to queue encode failures.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6815 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs14
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs2
2 files changed, 8 insertions, 8 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs
index 2f223d97b..366f5b4e6 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/QueueTask.cs
@@ -47,21 +47,21 @@ namespace HandBrake.ApplicationServices.Model
/// <param name="configuration">
/// The configuration.
/// </param>
- /// <param name="scannedSource">
- /// The scanned Source.
+ /// <param name="scannedSourcePath">
+ /// The scanned Source Path.
/// </param>
- public QueueTask(EncodeTask task, HBConfiguration configuration, Source scannedSource)
+ public QueueTask(EncodeTask task, HBConfiguration configuration, string scannedSourcePath)
{
this.Task = task;
this.Configuration = configuration;
this.Status = QueueItemStatus.Waiting;
- this.ScannedSource = scannedSource;
+ this.ScannedSourcePath = scannedSourcePath;
}
/// <summary>
/// Gets or sets ScannedSource.
/// </summary>
- public Source ScannedSource { get; set; }
+ public string ScannedSourcePath { get; set; }
/// <summary>
/// Gets or sets Status.
@@ -103,7 +103,7 @@ namespace HandBrake.ApplicationServices.Model
/// </returns>
protected bool Equals(QueueTask other)
{
- return Equals(this.ScannedSource, other.ScannedSource) && Equals(this.Task, other.Task) && this.status == other.status;
+ return Equals(this.ScannedSourcePath, other.ScannedSourcePath) && Equals(this.Task, other.Task) && this.status == other.status;
}
/// <summary>
@@ -145,7 +145,7 @@ namespace HandBrake.ApplicationServices.Model
{
unchecked
{
- int hashCode = (this.ScannedSource != null ? this.ScannedSource.GetHashCode() : 0);
+ int hashCode = (this.ScannedSourcePath != null ? this.ScannedSourcePath.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (this.Task != null ? this.Task.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (int)this.status;
return hashCode;
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs b/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
index 942644f2e..42f72f509 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/Encode/LibEncode.cs
@@ -138,7 +138,7 @@ namespace HandBrake.ApplicationServices.Services.Encode
ServiceLogMessage("Scanning title for encoding ... ");
- this.instance.StartScan(job.ScannedSource.ScanPath, job.Configuration.PreviewScanCount, job.Task.Title);
+ this.instance.StartScan(job.ScannedSourcePath, job.Configuration.PreviewScanCount, job.Task.Title);
}
catch (Exception exc)
{