Commit 71eb5e10 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Print minutes and seconds when there is less than 5 mins...

macosx/framework: Print minutes and seconds when there is less than 5 mins remaining in -[VLCTime verboseStringDescription]
parent e052ba38
......@@ -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];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment