[media.vlc] Always add --play-and-exit to args.

Without this option VLC seems to hang in the background, and it may
cause PulseAudio failures or memory issues after several videos have
been played - each in its own session.
This commit is contained in:
Fabio Manganiello 2024-01-18 21:21:15 +01:00
parent a47f9f1852
commit 998b7be7b8
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -42,7 +42,10 @@ class MediaVlcPlugin(MediaPlugin):
super().__init__(**kwargs)
self._args = args or []
self._args = list(args or [])
if '--play-and-exit' not in self._args:
self._args.append('--play-and-exit')
self._instance = None
self._player = None
self._latest_seek = None