remove unused PlaylistPos from player status
This commit is contained in:
@@ -322,9 +322,6 @@ func (p *Player) GetStatus() player.Status {
|
||||
if dur != nil {
|
||||
p.status.Duration = dur.(float64)
|
||||
}
|
||||
if playpos, err := p.getInt64Property("playlist-pos"); err == nil {
|
||||
p.status.PlaylistPos = int(playpos)
|
||||
}
|
||||
return p.status
|
||||
}
|
||||
|
||||
|
||||
+3
-4
@@ -51,10 +51,9 @@ const (
|
||||
// The current status of the player.
|
||||
// Includes playback state, current time, total track time, and playlist position.
|
||||
type Status struct {
|
||||
State State
|
||||
TimePos float64
|
||||
Duration float64
|
||||
PlaylistPos int
|
||||
State State
|
||||
TimePos float64
|
||||
Duration float64
|
||||
}
|
||||
|
||||
type ReplayGainMode int
|
||||
|
||||
Reference in New Issue
Block a user