]> git.sesse.net Git - vlc/commitdiff
macosx/framework: Print minutes and seconds when there is less than 5 mins remaining...
authorPierre d'Herbemont <pdherbemont@free.fr>
Mon, 7 Dec 2009 17:13:58 +0000 (18:13 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Mon, 7 Dec 2009 20:49:25 +0000 (21:49 +0100)
projects/macosx/framework/Sources/VLCTime.m

index 163d74769ccb1c3709d801e77c9496d23ddfd37e..93f65548b887e218d660f2a44847ac20e6851687 100644 (file)
             return [NSString stringWithFormat:@"%d hours %d minutes%s", hours, mins, remaining];
         else if (mins > 5)
             return [NSString stringWithFormat:@"%d minutes%s", mins, remaining];
+        else if (mins > 0)
+            return [NSString stringWithFormat:@"%d minutes %d seconds%s", mins, seconds, remaining];
         else
             return [NSString stringWithFormat:@"%d seconds%s", seconds, remaining];
     }