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

@ -117,7 +117,11 @@ class MediaOmxplayerPlugin(MediaPlugin):
if self._player:
try:
self._player.stop()
try:
self._player.stop()
except:
pass
self._player.quit()
except OMXPlayerDeadError:
pass