Skip to content

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

Closed
SaveTheRbtz wants to merge 1 commit into
masterfrom
codex-mpd-playing-update
Closed

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

Conversation

@SaveTheRbtz

Copy link
Copy Markdown
Owner

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 SaveTheRbtz marked this pull request as ready for review June 4, 2026 22:57

Copy link
Copy Markdown
Owner Author

Closed in favor of upstream PR: Alexays#5100

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