diff --git a/README.md b/README.md index fa05b39d6..bc7feab1d 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,7 @@ Your user icon or company logo shows up this with a link to your home page. [UnknownCoder807](https://github.com/UnknownCoder807) [skrew](https://github.com/skrew) [Kimentanm](https://github.com/Kimentanm) [nakiostudio](https://github.com/nakiostudio) [byMohamedali](https://github.com/byMohamedali) +Thanks to [nightfall708](https://github.com/nightfall708) for sponsoring a mac mini Thanks to [cdguy](https://github.com/cdguy) [UnknownCoder807](https://github.com/UnknownCoder807) [skrew](https://github.com/skrew) and LillyPlayer community for sponsoring a LG S95QR Sound Bar diff --git a/Sources/KSPlayer/MEPlayer/CircularBuffer.swift b/Sources/KSPlayer/MEPlayer/CircularBuffer.swift index bf2733261..ce394d9f7 100644 --- a/Sources/KSPlayer/MEPlayer/CircularBuffer.swift +++ b/Sources/KSPlayer/MEPlayer/CircularBuffer.swift @@ -6,7 +6,8 @@ // import Foundation - +/// 这个是单生产者,多消费者的阻塞队列和单生产者,多消费者的阻塞环形队列。并且环形队列还要有排序的能力。 +/// 因为seek需要清空队列,所以导致他是多消费者。后续可以看下能不能改成单消费者的。 public class CircularBuffer { private var _buffer = ContiguousArray() // private let semaphore = DispatchSemaphore(value: 0) diff --git a/Sources/KSPlayer/MEPlayer/MetalPlayView.swift b/Sources/KSPlayer/MEPlayer/MetalPlayView.swift index 0250ae7f3..ca3f74baf 100644 --- a/Sources/KSPlayer/MEPlayer/MetalPlayView.swift +++ b/Sources/KSPlayer/MEPlayer/MetalPlayView.swift @@ -11,7 +11,6 @@ import CoreMedia #if canImport(MetalKit) import MetalKit #endif - public protocol DisplayLayerDelegate: NSObjectProtocol { func change(displayLayer: AVSampleBufferDisplayLayer) }