summaryrefslogtreecommitdiffstats
path: root/win/C#/frmPreview.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-01-15 22:12:34 +0000
committersr55 <[email protected]>2010-01-15 22:12:34 +0000
commit5a0f5af93a11dea462fcea8cd4237b486f4a91bb (patch)
treea37b2b5706b3ad673c6572570c4c75d6f6d84ab0 /win/C#/frmPreview.cs
parent5add69a1b0833d7c3e316f69e1f2713b8440d6d2 (diff)
WinGui:
- Bit of re-factoring to the encode / queue code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3071 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmPreview.cs')
-rw-r--r--win/C#/frmPreview.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs
index d0f5ebfa3..8cd51a676 100644
--- a/win/C#/frmPreview.cs
+++ b/win/C#/frmPreview.cs
@@ -14,7 +14,7 @@ namespace Handbrake
public partial class frmPreview : Form
{
readonly QueryGenerator HbCommonFunc = new QueryGenerator();
- readonly EncodeAndQueueHandler Process = new EncodeAndQueueHandler();
+ readonly Queue Process = new Queue();
private delegate void UpdateUIHandler();
String CurrentlyPlaying = "";
readonly frmMain MainWindow;
@@ -106,15 +106,15 @@ namespace Handbrake
private void ProcMonitor(object state)
{
// Make sure we are not already encoding and if we are then display an error.
- if (Process.hbProcess != null)
+ if (Process.HbProcess != null)
MessageBox.Show(this, "Handbrake is already encoding a video!", "Status", MessageBoxButtons.OK, MessageBoxIcon.Warning);
else
{
- Process.RunCli((string)state);
- if (Process.hbProcess != null)
+ Process.CreatePreviewSampe((string)state);
+ if (Process.HbProcess != null)
{
- Process.hbProcess.WaitForExit();
- Process.hbProcess = null;
+ Process.HbProcess.WaitForExit();
+ Process.HbProcess = null;
}
EncodeCompleted();
}