summaryrefslogtreecommitdiffstats
path: root/win/C#/EncodeQueue/Queue.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/EncodeQueue/Queue.cs')
-rw-r--r--win/C#/EncodeQueue/Queue.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/win/C#/EncodeQueue/Queue.cs b/win/C#/EncodeQueue/Queue.cs
index f279a974f..0372d90b7 100644
--- a/win/C#/EncodeQueue/Queue.cs
+++ b/win/C#/EncodeQueue/Queue.cs
@@ -103,6 +103,19 @@ namespace Handbrake.EncodeQueue
}
/// <summary>
+ /// Retrieve a job from the queue
+ /// </summary>
+ /// <param name="index"></param>
+ /// <returns></returns>
+ public Job GetJob(int index)
+ {
+ if (queue.Count >= (index +1))
+ return queue[index];
+
+ return new Job();
+ }
+
+ /// <summary>
/// Moves an item up one position in the queue.
/// </summary>
/// <param name="index">The zero-based location of the job in the queue.</param>