Do not update position slider during buffering

This commit is contained in:
Rafostar
2020-09-03 07:29:02 +02:00
parent 9f18ec35b2
commit ec68db73c9

View File

@@ -80,7 +80,10 @@ class ClapperInterface extends Gtk.Grid
_onPlayerPositionUpdated(player, position)
{
if(this.controls.isPositionSeeking)
if(
this.controls.isPositionSeeking
|| this._player.state === GstPlayer.PlayerState.BUFFERING
)
return;
let positionSeconds = Math.round(position / 1000000000);