]> git.sesse.net Git - vlc/commitdiff
* skins2/vars/time.cpp: do not print leading spaces in the short time format
authorOlivier Teulière <ipkiss@videolan.org>
Tue, 15 Nov 2005 20:20:44 +0000 (20:20 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Tue, 15 Nov 2005 20:20:44 +0000 (20:20 +0000)
modules/gui/skins2/vars/time.cpp

index 4c081513873dda29fad90da815ae41a8f3a52092..ab962f25135de201025be79a8a610fe7f7ea1dca 100644 (file)
@@ -126,7 +126,7 @@ const string StreamTime::formatTime( int seconds, bool bShortFormat ) const
     char *psz_time = new char[MSTRTIME_MAX_SIZE];
     if( bShortFormat && (seconds < 60 * 60) )
     {
-        snprintf( psz_time, MSTRTIME_MAX_SIZE, "  %02d:%02d",
+        snprintf( psz_time, MSTRTIME_MAX_SIZE, "%02d:%02d",
                   (int) (seconds / 60 % 60),
                   (int) (seconds % 60) );
     }