Skip to content

fix(mpd): avoid false no-song warning when stopped#5101

Open
SaveTheRbtz wants to merge 1 commit into
Alexays:masterfrom
SaveTheRbtz:codex-mpd-song-warning
Open

fix(mpd): avoid false no-song warning when stopped#5101
SaveTheRbtz wants to merge 1 commit into
Alexays:masterfrom
SaveTheRbtz:codex-mpd-song-warning

Conversation

@SaveTheRbtz

Copy link
Copy Markdown

Summary

  • Only warn about a missing current song when MPD is not stopped.
  • Keep the existing stopped-format fallback for missing song data.

Why

MPD can legitimately report no current song while stopped. The old condition logged Bug in mpd for any missing song, including the normal stopped state, which made routine MPD idle/stopped states look like bugs.

Testing

  • ninja -C build
  • meson test -C build

@SaveTheRbtz

Copy link
Copy Markdown
Author

cc @awused @2e0byo, you both have relevant MPD state/no-song context and may be good reviewers here.

@2e0byo

2e0byo commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

I suspect my old hack just had a bug in it, since the log line wasn't gated on checking it was actually stopped.

LGTM (not that I have any role here).

@2e0byo 2e0byo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: my original log line should have been gated behind such a check.

(I'm just a random stranger and have no role here, just reviewing as I wrote the previous patch.)

Comment thread src/modules/mpd/mpd.cpp Outdated
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.

2 participants