[vlc-devel] commit: macosx/framework: Print minutes and seconds when there is less than 5 mins remaining in -[ VLCTime verboseStringDescription] (Pierre d'Herbemont )
git version control
git at videolan.org
Mon Dec 7 22:55:52 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Mon Dec 7 18:13:58 2009 +0100| [71eb5e10f671e0f3aee8734309588c47a22d2914] | committer: Pierre d'Herbemont
macosx/framework: Print minutes and seconds when there is less than 5 mins remaining in -[VLCTime verboseStringDescription]
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71eb5e10f671e0f3aee8734309588c47a22d2914
---
projects/macosx/framework/Sources/VLCTime.m | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCTime.m b/projects/macosx/framework/Sources/VLCTime.m
index 163d747..93f6554 100644
--- a/projects/macosx/framework/Sources/VLCTime.m
+++ b/projects/macosx/framework/Sources/VLCTime.m
@@ -131,6 +131,8 @@
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];
}
More information about the vlc-devel
mailing list