only bind Player if the active backend is AVPlayer

This commit is contained in:
Toni Förster 2024-04-26 18:33:12 +02:00
parent c41b635276
commit 4144a29608
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -936,7 +936,7 @@ final class PlayerModel: ObservableObject {
func handleEnterForeground() { func handleEnterForeground() {
setNeedsDrawing(presentingPlayer) setNeedsDrawing(presentingPlayer)
if !musicMode { if !musicMode, activeBackend == .appleAVPlayer {
avPlayerBackend.bindPlayerToLayer() avPlayerBackend.bindPlayerToLayer()
} }