Apply changes to any Ogg Vorbis comment unless a track has been specified

This is required since the parsed Ogg Vorbis comment's target is set to the
containing Ogg stream as it still makes sense not having to care about the
specific track in most cases.
This commit is contained in:
Martchus 2022-05-04 00:42:48 +02:00
parent 66ee4fc3ae
commit 56ca398dda
1 changed files with 1 additions and 0 deletions

View File

@ -690,6 +690,7 @@ void setTagInfo(const SetTagInfoArgs &args)
// skip values which scope does not match the current tag
if (denotedScope.isTrack() || !(denotedScope.tagType == TagType::Unspecified || (denotedScope.tagType & tagType))
|| !(!targetSupported
|| (tagType == TagType::OggVorbisComment && denotedScope.tagTarget.isEmpty())
|| (denotedScope.exactTargetMatching ? denotedScope.tagTarget == tagTarget
: denotedScope.tagTarget.matches(tagTarget)))) {
continue;