]> granicus.if.org Git - handbrake/commitdiff
WinGui: (0.9.x) Always pass down the --previews flag for encodes when it's not defaul...
authorsr55 <sr55.hb@outlook.com>
Sun, 22 Apr 2012 23:44:15 +0000 (23:44 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 22 Apr 2012 23:44:15 +0000 (23:44 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4602 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/Functions/QueryGenerator.cs

index 729cfe17eeda9d84b77c9e513ee9811a07a2eede..746aaf3b42e3c3233f591ea1d7104027e7cce304 100644 (file)
@@ -238,7 +238,6 @@ namespace Handbrake.Functions
                     query += string.Format(" --start-at frame:{0} --stop-at frame:{1}", mainWindow.drop_chapterStart.Text, calculatedDuration);\r
                     break;\r
                 case 3: // Preview\r
-                    query += " --previews " + UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount) + " ";\r
                     query += " --start-at-preview " + preview;\r
                     query += " --stop-at duration:" + duration + " ";\r
                     break;\r
@@ -638,6 +637,12 @@ namespace Handbrake.Functions
             if (UserSettingService.GetUserSetting<bool>(ASUserSettingConstants.DisableLibDvdNav))\r
                 query += " --no-dvdnav";\r
 \r
+            if (UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount) != 10)\r
+            {\r
+                query += string.Format(\r
+                    " --previews {0} ", UserSettingService.GetUserSetting<int>(ASUserSettingConstants.PreviewScanCount));\r
+            }\r
+\r
             return query;\r
         }\r
 \r