[Ogg Vorbis/Opus] Fix tag clobber on play
Fixed the tags being overwritten by an "update" on non-streaming files. Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
8c4f9a7123
commit
29dfe593f1
|
@ -180,8 +180,10 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
|
||||||
metaDict = _metaDict;
|
metaDict = _metaDict;
|
||||||
albumArt = _albumArt;
|
albumArt = _albumArt;
|
||||||
|
|
||||||
[self willChangeValueForKey:@"metadata"];
|
if(![source seekable]) {
|
||||||
[self didChangeValueForKey:@"metadata"];
|
[self willChangeValueForKey:@"metadata"];
|
||||||
|
[self didChangeValueForKey:@"metadata"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,8 +157,10 @@ static void setDictionary(NSMutableDictionary *dict, NSString *tag, NSString *va
|
||||||
metaDict = _metaDict;
|
metaDict = _metaDict;
|
||||||
albumArt = _albumArt;
|
albumArt = _albumArt;
|
||||||
|
|
||||||
[self willChangeValueForKey:@"metadata"];
|
if(![source seekable]) {
|
||||||
[self didChangeValueForKey:@"metadata"];
|
[self willChangeValueForKey:@"metadata"];
|
||||||
|
[self didChangeValueForKey:@"metadata"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue