media.vlc.stop should be synchronized on the _stop_lock and should call _reset_state instead of simply setting self._player = None
This commit is contained in:
parent
ce0ca2e9ee
commit
f92d19a24e
1 changed files with 6 additions and 5 deletions
|
@ -217,11 +217,12 @@ class MediaVlcPlugin(MediaPlugin):
|
||||||
@action
|
@action
|
||||||
def quit(self):
|
def quit(self):
|
||||||
""" Quit the player (same as `stop`) """
|
""" Quit the player (same as `stop`) """
|
||||||
|
with self._stop_lock:
|
||||||
if not self._player:
|
if not self._player:
|
||||||
return None, 'No vlc instance is running'
|
return None, 'No vlc instance is running'
|
||||||
|
|
||||||
self._player.stop()
|
self._player.stop()
|
||||||
self._player = None
|
self._reset_state()
|
||||||
return self.status()
|
return self.status()
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
|
Loading…
Reference in a new issue