diff options
author | sr55 <[email protected]> | 2009-08-03 15:26:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-08-03 15:26:14 +0000 |
commit | bd7f9d53243dde4bd44d50004e0022151b0a2af3 (patch) | |
tree | 29e660b4faaf20a350bf5c91d71ade0315122686 /win/C#/frmPreview.cs | |
parent | 30e5a9e1a2a09f134db33d7779e21cea05203087 (diff) |
WinGui:
- Mostly just code re-factoring.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2748 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmPreview.cs')
-rw-r--r-- | win/C#/frmPreview.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs index 96ef4a87d..6d68dda6d 100644 --- a/win/C#/frmPreview.cs +++ b/win/C#/frmPreview.cs @@ -57,7 +57,9 @@ namespace Handbrake btn_playQT.Enabled = false;
btn_playVLC.Enabled = false;
lbl_status.Text = "Encoding Sample for (VLC) ...";
- String query = hb_common_func.generatePreviewQuery(mainWindow, cb_duration.Text, cb_preview.Text);
+ int duration;
+ int.TryParse(cb_duration.Text, out duration);
+ String query = hb_common_func.generateCLIQuery(mainWindow, duration, cb_preview.Text);
ThreadPool.QueueUserWorkItem(procMonitor, query);
}
private void btn_playQT_Click(object sender, EventArgs e)
@@ -85,7 +87,9 @@ namespace Handbrake btn_playQT.Enabled = false;
btn_playVLC.Enabled = false;
lbl_status.Text = "Encoding Sample for (QT) ...";
- String query = hb_common_func.generatePreviewQuery(mainWindow, cb_duration.Text, cb_preview.Text);
+ int duration;
+ int.TryParse(cb_duration.Text, out duration);
+ String query = hb_common_func.generateCLIQuery(mainWindow, duration, cb_preview.Text);
ThreadPool.QueueUserWorkItem(procMonitor, query);
}
|