diff options
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 != "")
|