Commit 5ea622dc authored by Jakob Leben's avatar Jakob Leben

Qt: hide buffering display if buffering doesn't reach 100%

parent f3efae83
...@@ -607,6 +607,9 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf ) ...@@ -607,6 +607,9 @@ TimeLabel::TimeLabel( intf_thread_t *_p_intf )
void TimeLabel::setDisplayPosition( float pos, int64_t t, int length ) void TimeLabel::setDisplayPosition( float pos, int64_t t, int length )
{ {
showBuffering = false;
bufTimer->stop();
if( pos == -1.f ) if( pos == -1.f )
{ {
setText( " --:--/--:-- " ); setText( " --:--/--:-- " );
...@@ -666,6 +669,7 @@ void TimeLabel::updateBuffering( float _buffered ) ...@@ -666,6 +669,7 @@ void TimeLabel::updateBuffering( float _buffered )
else if( bufVal == 1 ) else if( bufVal == 1 )
{ {
showBuffering = buffering = false; showBuffering = buffering = false;
bufTimer->stop();
} }
update(); update();
} }
......
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