1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Fix incorrect platform check

This commit is contained in:
Elias Steurer 2021-11-09 10:30:44 +01:00
parent fbb4d80817
commit c15920ea1d

View File

@ -18,7 +18,7 @@ Rectangle {
Wallpaper.terminate() Wallpaper.terminate()
} }
// macOS only supports h264 via the native Qt MM // macOS only supports h264 via the native Qt MM
if (Qt.platform === "osx" && (Wallpaper.videoCodec === VideoCodec.VP8 if (Qt.platform.os === "osx" && (Wallpaper.videoCodec === VideoCodec.VP8
|| Wallpaper.videoCodec === VideoCodec.VP9)) { || Wallpaper.videoCodec === VideoCodec.VP9)) {
loader.source = "qrc:/ScreenPlayWallpaper/qml/MultimediaWebView.qml" loader.source = "qrc:/ScreenPlayWallpaper/qml/MultimediaWebView.qml"
} else { } else {