summaryrefslogtreecommitdiffstats
path: root/win/CS/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-04-22 23:43:51 +0000
committersr55 <[email protected]>2012-04-22 23:43:51 +0000
commitecca04f1513806a7aa8fc061fa646f75e5dfe4ef (patch)
treee97c78b38314266fc4f4ecdbc3a4cffcf94d021f /win/CS/Functions
parent8c2eff9199b8e98e7b39fa236e6759f689d7bfda (diff)
WinGui: Always pass down the --previews flag for encodes when it's not defaulted to 10
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4601 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Functions')
-rw-r--r--win/CS/Functions/QueryGenerator.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/Functions/QueryGenerator.cs b/win/CS/Functions/QueryGenerator.cs
index 31082711f..edcdc1002 100644
--- a/win/CS/Functions/QueryGenerator.cs
+++ b/win/CS/Functions/QueryGenerator.cs
@@ -235,7 +235,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;
@@ -635,6 +634,13 @@ 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;
}