[media.vlc] Always set the stop event when the player quits.

This commit is contained in:
Fabio Manganiello 2024-10-22 02:56:56 +02:00
parent 1626fc737e
commit f98f9c3b96
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -133,6 +133,7 @@ class MediaVlcPlugin(MediaPlugin):
if state in {vlc.State.Stopped, vlc.State.Ended, vlc.State.Error}: # type: ignore if state in {vlc.State.Stopped, vlc.State.Ended, vlc.State.Error}: # type: ignore
break break
self._on_stop_event.set()
self.logger.info('VLC stream terminated') self.logger.info('VLC stream terminated')
self.quit() self.quit()