Commit 7793f291 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Display "--:--" in the status bar when vlc can't guess the total time.

I think it is better that way and confuse less the users.
parent dff7943b
......@@ -658,7 +658,10 @@ void MainInterface::setDisplayPosition( float pos, int time, int length )
secstotimestr( psz_time, ( b_remainingTime && length ) ? length - time
: time );
QString title; title.sprintf( "%s/%s", psz_time, psz_length );
QString title;
title.sprintf( "%s/%s", psz_time,
( !length && time ) ? "--:--" : psz_length );
/* Add a minus to remaining time*/
if( b_remainingTime && length ) timeLabel->setText( " -"+title+" " );
else timeLabel->setText( " "+title+" " );
......
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