diff options
author | sr55 <[email protected]> | 2009-05-23 14:57:00 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-05-23 14:57:00 +0000 |
commit | ee294958088a96ca232a1334eea6542dd7e30d60 (patch) | |
tree | 56fd62f1f300c731ee3316b52a8d65dc247bc695 /win/C#/Functions/Main.cs | |
parent | b1ef4b866e0a29e3274d521eb0b768d48195fc9e (diff) |
WinGui:WinGui:
- Stop button, now allows the CLI to cleanly exit by sending ctrl-c rather than killing the process.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2444 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Main.cs')
-rw-r--r-- | win/C#/Functions/Main.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index a95f5e144..be46465d4 100644 --- a/win/C#/Functions/Main.cs +++ b/win/C#/Functions/Main.cs @@ -12,13 +12,14 @@ using System.Text.RegularExpressions; using System.Collections.Generic;
using System.Xml.Serialization;
using System.Threading;
+using Handbrake.EncodeQueue;
namespace Handbrake.Functions
{
static class Main
{
// Private Variables
- private static readonly XmlSerializer ser = new XmlSerializer(typeof(List<Queue.QueueItem>));
+ private static readonly XmlSerializer ser = new XmlSerializer(typeof(List<QueueItem>));
/// <summary>
/// Calculate the duration of the selected title and chapters
@@ -358,7 +359,7 @@ namespace Handbrake.Functions {
using (FileStream strm = new FileStream(tempPath, FileMode.Open, FileAccess.Read))
{
- List<Queue.QueueItem> list = ser.Deserialize(strm) as List<Queue.QueueItem>;
+ List<QueueItem> list = ser.Deserialize(strm) as List<QueueItem>;
if (list != null)
if (list.Count != 0)
return true;
|