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

View File

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