forked from platypush/platypush
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:
parent
04a23d555d
commit
b27c9ee630
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue