summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-04-28 15:42:04 +0000
committersr55 <[email protected]>2013-04-28 15:42:04 +0000
commit4aeee606165b9d16acb8653522d520301a349372 (patch)
treec4b1084fd492c059a3aeccb7d32d929896601526 /win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs
parent7438206903b4aba04319c8575bcf0f41ce0cc8a1 (diff)
OpenCL: Merging Trunk to OpenCL branch in preparation to merge back to core after the upcoming release ships.
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5418 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs
index 172fe7291..a442dc5ce 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/QueueProcessor.cs
@@ -215,7 +215,7 @@ namespace HandBrake.ApplicationServices.Services
/// </returns>
public bool CheckForDestinationPathDuplicates(string destination)
{
- return this.queue.Any(checkItem => checkItem.Task.Destination.Contains(destination.Replace("\\\\", "\\")));
+ return this.queue.Any(job => job.Task != null && job.Task.Destination.Contains(destination.Replace("\\\\", "\\")));
}
/// <summary>