[media.vlc] Always add `--play-and-exit` to args.
continuous-integration/drone/push Build is passing Details

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
1 changed files with 4 additions and 1 deletions

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