Commit 440b1820 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf

qt: don't display position in progress bar if media is not seekable

Ref #19235
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit a4907483)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 52c89413
......@@ -201,14 +201,16 @@ void SeekSlider::setChapters( SeekPoints *chapters_ )
void SeekSlider::setPosition( float pos, int64_t time, int length )
{
VLC_UNUSED(time);
if( pos == -1.0 )
if( pos == -1.0 || ! b_seekable )
{
setEnabled( false );
mTimeTooltip->hide();
isSliding = false;
setValue( 0 );
return;
}
else
setEnabled( b_seekable );
setEnabled( true );
if( !isSliding )
{
......
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