Skip to content

sound applet: Keep the seek position when the player resends the same track - #14154

Open
mateuscmtropical wants to merge 1 commit into
linuxmint:masterfrom
mateuscmtropical:sound-applet-seek-reset
Open

mateuscmtropical wants to merge 1 commit into
linuxmint:masterfrom
mateuscmtropical:sound-applet-seek-reset

Conversation

@mateuscmtropical

Copy link
Copy Markdown

Fixes #14127

Some players (MPD through mpDris2) resend Metadata for the current track after a seek. _setMetadata() then calls Seeker.setTrack(), which always reset the position to 0, so the slider jumped back until the next sync about 10 seconds later.

setTrack() now only resets the position when the track ID changes. For the same track it asks the player for the real position instead. This is the fix suggested in the issue by @J426O.

Checked the new setTrack() with a small stub: a new or empty track ID still resets to 0, and the same track ID keeps the position and calls _getPosition(). I did not test it on a live Cinnamon session.

@J426O

J426O commented Nov 20, 2026

Copy link
Copy Markdown

thank you brother

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sound applet: seek bar jumps back after seeking when player resends metadata (e.g. mpDris2/MPD)

2 participants