{
char psz_length[MSTRTIME_MAX_SIZE], psz_time[MSTRTIME_MAX_SIZE];
secstotimestr( psz_length, length );
- secstotimestr( psz_time, b_remainingTime ? length - time : time );
+ secstotimestr( psz_time, ( b_remainingTime && length ) ? length - time
+ : time );
QString title; title.sprintf( "%s/%s", psz_time, psz_length );
/* Add a minus to remaining time*/
- if( b_remainingTime ) timeLabel->setText( " -"+title+" " );
+ if( b_remainingTime && length ) timeLabel->setText( " -"+title+" " );
else timeLabel->setText( " "+title+" " );
}