From: sr55 Date: Sun, 22 Apr 2012 23:44:15 +0000 (+0000) Subject: WinGui: (0.9.x) Always pass down the --previews flag for encodes when it's not defaul... X-Git-Tag: 0.9.6.1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8901f7546557222e7d720af24ae2fcf9af4e440a;p=handbrake 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 --- 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(ASUserSettingConstants.PreviewScanCount) + " "; query += " --start-at-preview " + preview; query += " --stop-at duration:" + duration + " "; break; @@ -638,6 +637,12 @@ namespace Handbrake.Functions if (UserSettingService.GetUserSetting(ASUserSettingConstants.DisableLibDvdNav)) query += " --no-dvdnav"; + if (UserSettingService.GetUserSetting(ASUserSettingConstants.PreviewScanCount) != 10) + { + query += string.Format( + " --previews {0} ", UserSettingService.GetUserSetting(ASUserSettingConstants.PreviewScanCount)); + } + return query; }