diff options
author | sr55 <[email protected]> | 2012-04-22 23:44:15 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-04-22 23:44:15 +0000 |
commit | 8901f7546557222e7d720af24ae2fcf9af4e440a (patch) | |
tree | bd59da3de959eb420672a2a829eb87bd0a8a66cd | |
parent | 25975e097d8af0e9eb4f3b0f4f38fe7531006c29 (diff) |
WinGui: (0.9.x) Always pass down the --previews flag for encodes when it's not defaulted to 10
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4602 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/CS/Functions/QueryGenerator.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs index 729cfe17e..746aaf3b4 100644 --- a/win/CS/Functions/QueryGenerator.cs +++ b/win/CS/Functions/QueryGenerator.cs @@ -238,7 +238,6 @@ namespace Handbrake.Functions query += string.Format(" --start-at frame:{0} --stop-at frame:{1}", mainWindow.drop_chapterStart.Text, calculatedDuration);
break;
case 3: // Preview
- query += " --previews " + UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount) + " ";
query += " --start-at-preview " + preview;
query += " --stop-at duration:" + duration + " ";
break;
@@ -638,6 +637,12 @@ namespace Handbrake.Functions if (UserSettingService.GetUserSetting<bool>(ASUserSettingConstants.DisableLibDvdNav))
query += " --no-dvdnav";
+ if (UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount) != 10)
+ {
+ query += string.Format(
+ " --previews {0} ", UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount));
+ }
+
return query;
}
|