Skip to content

perf(mpd): avoid duplicate playing-state updates#5100

Open
SaveTheRbtz wants to merge 1 commit into
Alexays:masterfrom
SaveTheRbtz:codex-mpd-playing-update
Open

perf(mpd): avoid duplicate playing-state updates#5100
SaveTheRbtz wants to merge 1 commit into
Alexays:masterfrom
SaveTheRbtz:codex-mpd-playing-update

Conversation

@SaveTheRbtz

Copy link
Copy Markdown

Summary

  • Remove the unused queryMPD() wrapper from the MPD state path.
  • Let the playing timer reuse its existing fetchState() result and emit one update.

Why

Playing::on_timer() already fetches MPD state before checking whether playback is still active. Calling queryMPD() immediately afterward fetched the same state again and emitted an extra update on every playing tick.

Testing

  • ninja -C build
  • meson test -C build

@SaveTheRbtz

Copy link
Copy Markdown
Author

cc @awused @cpuspellcaster, you both have recent context on the MPD timer/state path and may be good reviewers here.

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.

1 participant