]> granicus.if.org Git - handbrake/commitdiff
WinGui: Remove some test code.
authorsr55 <sr55.hb@outlook.com>
Sat, 9 May 2015 18:26:07 +0000 (18:26 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 9 May 2015 18:26:07 +0000 (18:26 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7168 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs

index e46f5b30bba40eaecb405ab9f0204fe2b862b74b..b441360952abb9609b9a490113fed9c2f6c340af 100644 (file)
@@ -48,12 +48,12 @@ namespace HandBrake.ApplicationServices.Interop
         /// <summary>\r
         /// The number of MS between status polls when scanning.\r
         /// </summary>\r
-        private const double ScanPollIntervalMs = 200;\r
+        private const double ScanPollIntervalMs = 250;\r
 \r
         /// <summary>\r
         /// The number of MS between status polls when encoding.\r
         /// </summary>\r
-        private const double EncodePollIntervalMs = 200;\r
+        private const double EncodePollIntervalMs = 250;\r
 \r
         /// <summary>\r
         /// The native handle to the HandBrake instance.\r
index 41e280b9ac58fa30b265e7078ceb95f84e31b576..d5ed439bb66eb46e76ca8f69e07a839729e059a8 100644 (file)
@@ -2258,35 +2258,14 @@ namespace HandBrakeWPF.ViewModels
                 {\r
                     if (this.queueProcessor.EncodeService.IsEncoding)\r
                     {\r
-                        long length = 0;\r
-                        double filesize = 0;\r
-                        try\r
-                        {\r
-                             length = new System.IO.FileInfo(this.Destination).Length;\r
-                            if (length != 0)\r
-                            {\r
-                                length = length / 1024 / 1024; // MB\r
-                            }\r
-\r
-                            double portionLeft = 100 / e.PercentComplete;\r
-\r
-                            filesize = Math.Round( length * portionLeft, 1);\r
-\r
-                        }\r
-                        catch (Exception ee)\r
-                        {\r
-                            Debug.WriteLine(ee);\r
-                        }\r
-\r
                         this.ProgramStatusLabel =\r
-                            string.Format("{0:00.00}%   FPS: {1:000.0}   Avg FPS: {2:000.0}   Time Remaining: {3}   Elapsed: {4:hh\\:mm\\:ss}   Filesize: {6}MB" + Resources.Main_JobsPending_addon,\r
+                            string.Format("{0:00.00}%   FPS: {1:000.0}   Avg FPS: {2:000.0}   Time Remaining: {3}   Elapsed: {4:hh\\:mm\\:ss}" + Resources.Main_JobsPending_addon,\r
                                 e.PercentComplete,\r
                                 e.CurrentFrameRate,\r
                                 e.AverageFrameRate,\r
                                 e.EstimatedTimeLeft,\r
                                 e.ElapsedTime,\r
-                                this.queueProcessor.Count,\r
-                                filesize);\r
+                                this.queueProcessor.Count);\r
 \r
                         if (lastEncodePercentage != percent && this.windowsSeven.IsWindowsSeven)\r
                         {\r
index 47cc4f6a3db8b6c4d3c56381e785bb077166370d..6252f53f380f1215b3feca93f26d1a17d7c19eb8 100644 (file)
@@ -40,7 +40,7 @@ namespace HandBrakeWPF.ViewModels
     public class VideoViewModel : ViewModelBase, IVideoViewModel\r
     {\r
         /*\r
-         * Hard Code "None" in the Models for Tune.\r
+         * Hard Code "None" in the Models for Tune.t\r
          * Test Everything         */\r
 \r
         #region Constants and Fields\r