Make sure to always run .quit() on the _player instance on stop/exit event, even if the player is already stopped, otherwise the OMXPlayer session may be hanging in the background and prevent new DBus connections

This commit is contained in:
Fabio Manganiello 2021-02-22 14:22:39 +01:00
parent 04a23d555d
commit b27c9ee630

View file

@ -116,8 +116,12 @@ class MediaOmxplayerPlugin(MediaPlugin):
from omxplayer.player import OMXPlayerDeadError from omxplayer.player import OMXPlayerDeadError
if self._player: if self._player:
try:
try: try:
self._player.stop() self._player.stop()
except:
pass
self._player.quit() self._player.quit()
except OMXPlayerDeadError: except OMXPlayerDeadError:
pass pass