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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user