From 998b7be7b84d1923312ec65369724a88ea303d40 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 18 Jan 2024 21:21:15 +0100 Subject: [PATCH] [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. --- platypush/plugins/media/vlc/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/media/vlc/__init__.py b/platypush/plugins/media/vlc/__init__.py index 3522acbc..fecb2900 100644 --- a/platypush/plugins/media/vlc/__init__.py +++ b/platypush/plugins/media/vlc/__init__.py @@ -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