]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/vars/time.cpp
* skins2/vars/time.cpp: do not print leading spaces in the short time format
[vlc] / 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) );
     }