Commit 3b2c8463 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: set TimeLabel to --:--/--:-- when input is stopped.

parent 4ca1e354
......@@ -463,7 +463,11 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf ) :QLabel(), p_intf( _p_intf )
void TimeLabel::setDisplayPosition( float pos, int time, int length )
{
VLC_UNUSED( pos );
if( pos == -1 )
{
setText( " --:--/--:-- " );
return;
}
char psz_length[MSTRTIME_MAX_SIZE], psz_time[MSTRTIME_MAX_SIZE];
secstotimestr( psz_length, length );
......
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