Skip to content

Commit

Permalink
Reduce number of sequential runs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Oct 20, 2023
1 parent 0a0fe10 commit 62bac5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Sources/SwiftAudioEx/Observer/AVPlayerItemObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ class AVPlayerItemObserver: NSObject {
item.add(self.metadataOutput)
}
}

let removalQueue = DispatchQueue(label: "com.myapp.removal.queue")


func stopObservingCurrentItem() {
guard let observingItem = observingItem, isObserving else {
return
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftAudioExTests/AVPlayerItemObserverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AVPlayerItemObserverTests: XCTestCase {
}

func testObservingInQuickSucccession() {
for _ in 0...10000 {
for _ in 0...1000 {
let item = AVPlayerItem(url: URL(fileURLWithPath: Source.path))
observer.startObserving(item: item)
}
Expand Down

0 comments on commit 62bac5e

Please sign in to comment.