Skip to content

Commit

Permalink
Avoid emitting empty common metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
puckey committed Oct 31, 2023
1 parent 7fb762d commit c50d36f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/SwiftAudioEx/AVPlayerWrapper/AVPlayerWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ class AVPlayerWrapper: AVPlayerWrapperProtocol {
if (pendingAsset != self.asset) { return; }

let commonData = pendingAsset.commonMetadata
self.delegate?.AVWrapper(didReceiveCommonMetadata: commonData)
if (!commonData.isEmpty) {
self.delegate?.AVWrapper(didReceiveCommonMetadata: commonData)
}

if pendingAsset.availableChapterLocales.count > 0 {
for locale in pendingAsset.availableChapterLocales {
Expand Down

0 comments on commit c50d36f

Please sign in to comment.