summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/CS/frmPreview.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/CS/frmPreview.cs b/win/CS/frmPreview.cs
index 5572cda23..c137262a9 100644
--- a/win/CS/frmPreview.cs
+++ b/win/CS/frmPreview.cs
@@ -187,8 +187,7 @@ namespace Handbrake
return;
}
- QueueTask task = new QueueTask((string)state);
- encodeQueue.Start(task, false);
+ encodeQueue.Start((QueueTask)state, false);
}
#endregion
@@ -214,7 +213,8 @@ namespace Handbrake
int duration;
int.TryParse(endPoint.Text, out duration);
string query = QueryGenerator.GeneratePreviewQuery(this.mainWindow, duration, startPoint.Text);
- ThreadPool.QueueUserWorkItem(this.CreatePreview, query);
+ QueueTask task = new QueueTask(query) { Destination = this.mainWindow.text_destination.Text };
+ ThreadPool.QueueUserWorkItem(this.CreatePreview, task);
}
/// <summary>