diff options
author | sr55 <[email protected]> | 2008-12-30 21:04:29 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-12-30 21:04:29 +0000 |
commit | ff08bb6bfb4a05e5f07161b83aae7dd87e528689 (patch) | |
tree | 38cb251af850fdfcba4957e1b2cc75d2583c249b /win/C#/frmMain/QueryGenerator.cs | |
parent | 46e700237d3d1e0ee519606e856bc016b1c46de6 (diff) |
WinGui:
- Preview Video setup for Encodes for any of the 10 previews that you'd find in the mac gui, for durations from 5 to 60 seconds.
- Removed some old code
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2050 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain/QueryGenerator.cs')
-rw-r--r-- | win/C#/frmMain/QueryGenerator.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/C#/frmMain/QueryGenerator.cs b/win/C#/frmMain/QueryGenerator.cs index c10d3b10a..d7a4900fc 100644 --- a/win/C#/frmMain/QueryGenerator.cs +++ b/win/C#/frmMain/QueryGenerator.cs @@ -50,7 +50,7 @@ namespace Handbrake /// </summary>
/// <param name="mainWindow"></param>
/// <returns>Returns a CLI query String.</returns>
- public string GeneratePreviewQuery(frmMain mainWindow, string duration)
+ public string GeneratePreviewQuery(frmMain mainWindow, string duration, string preview)
{
int seconds = 0;
int.TryParse(duration, out seconds);
@@ -67,7 +67,8 @@ namespace Handbrake query += " -t " + titleInfo[0];
}
- query += " -c 2";
+ query += " --start-at-preview " + preview;
+ query += " --stop-at-duration " + duration + " ";
// Destination tab
if (mainWindow.text_destination.Text != "")
|