mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Minor performance improvement
This commit is contained in:
@@ -459,12 +459,16 @@ final class PlayerModel: ObservableObject {
|
||||
return
|
||||
}
|
||||
|
||||
streamSelection = stream
|
||||
playStream(
|
||||
stream,
|
||||
of: currentVideo,
|
||||
preservingTime: !currentItem.playbackTime.isNil
|
||||
)
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
DispatchQueue.main.async {
|
||||
self.streamSelection = stream
|
||||
}
|
||||
self.playStream(
|
||||
stream,
|
||||
of: currentVideo,
|
||||
preservingTime: !self.currentItem.playbackTime.isNil
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private func handlePresentationChange() {
|
||||
|
Reference in New Issue
Block a user