decoder/Bridge: DecoderBridge::UpdateStreamTag - return false if stream tag not changed.

Some streams send the same tags frequently, causeing unnecessary update
events.
This commit is contained in:
gd 2025-01-29 08:45:21 +02:00
parent f9d47502d8
commit ce9ee38304

@ -239,6 +239,10 @@ DecoderBridge::UpdateStreamTag(InputStream *is) noexcept
/* discard the song tag; we don't need it */
song_tag.reset();
if (stream_tag && tag && *stream_tag == *tag)
/* not changed */
return false;
stream_tag = std::move(tag);
return true;
}