diff --git a/panels/camera.py b/panels/camera.py index 837d7259..0919fa7f 100644 --- a/panels/camera.py +++ b/panels/camera.py @@ -49,11 +49,17 @@ class CameraPanel(ScreenPanel): self.mpv.terminate() self.mpv = None # Create mpv after show or the 'window' property will be None - self.mpv = mpv.MPV( - log_handler=self.log, - vo=self.vo, - profile='sw-fast', - ) + try: + self.mpv = mpv.MPV( + log_handler=self.log, + vo=self.vo, + profile='sw-fast', + ) + except ValueError: + self.mpv = mpv.MPV( + log_handler=self.log, + vo=self.vo, + ) # On wayland mpv cannot be embedded at least for now # https://github.com/mpv-player/mpv/issues/9654 # if fs or self.wayland: