Copy the MP42Metadata instance in MetadataPreset init.

This commit is contained in:
Damiano Galassi committed 2017-09-13 07:37:58 +02:00
1 parent 76745bfa05
commit 2362a5de03
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ import Foundation
@objc init(title: String, metadata: MP42Metadata, replaceArtworks: Bool, replaceAnnotations: Bool) {
self.title = title
self.metadata = metadata
self.metadata = metadata.copy() as! MP42Metadata
self.replaceArtworks = replaceArtworks
self.replaceAnnotations = replaceAnnotations
self.changed = true