Minor fixes

This commit is contained in:
Arkadiusz Fal
2022-03-20 00:05:09 +01:00
parent b22d75742e
commit bd8966735f
3 changed files with 6 additions and 9 deletions

View File

@@ -267,6 +267,7 @@ final class MPVBackend: PlayerBackend {
case MPV_EVENT_FILE_LOADED:
onFileLoaded?()
startClientUpdates()
onFileLoaded = nil
case MPV_EVENT_UNPAUSE:

View File

@@ -24,9 +24,9 @@ final class MPVClient: ObservableObject {
func create(frame: CGRect? = nil) {
#if !os(macOS)
if let frame = frame {
glView = MPVOGLView(frame: frame)
}
if let frame = frame {
glView = MPVOGLView(frame: frame)
}
#endif
mpv = mpv_create()