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:
Fabio Manganiello 2021-03-24 15:01:21 +01:00
parent 00fabf3853
commit 4313b6e883

View file

@ -403,6 +403,8 @@ class MediaVlcPlugin(MediaPlugin):
}
"""
import vlc
with self._stop_lock:
if not self._player:
return {'state': PlayerState.STOP.value}