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