Add player seek_done property

This commit is contained in:
Rafostar
2020-10-16 13:24:18 +02:00
parent eafc65d15d
commit 8297be45ba
2 changed files with 27 additions and 10 deletions

View File

@@ -345,7 +345,7 @@ class ClapperInterface extends Gtk.Grid
{
switch(state) {
case GstPlayer.PlayerState.BUFFERING:
if(!this._player.isLocalFile)
if(!this._player.is_local_file)
this.needsTracksUpdate = true;
break;
case GstPlayer.PlayerState.STOPPED:
@@ -395,6 +395,7 @@ class ClapperInterface extends Gtk.Grid
{
if(
!this.isSeekable
|| !this._player.seek_done
|| this.controls.isPositionSeeking
|| this._player.state === GstPlayer.PlayerState.BUFFERING
)