forked from platypush/platypush
media.vlc.status should synchronize on _stop_lock, or it may fail in the middle of its execution if the VLC session is being freed
This commit is contained in:
parent
00fabf3853
commit
4313b6e883
1 changed files with 27 additions and 25 deletions
|
@ -403,6 +403,8 @@ class MediaVlcPlugin(MediaPlugin):
|
|||
}
|
||||
"""
|
||||
import vlc
|
||||
|
||||
with self._stop_lock:
|
||||
if not self._player:
|
||||
return {'state': PlayerState.STOP.value}
|
||||
|
||||
|
|
Loading…
Reference in a new issue