Only propagate MediaStopEvent on mpv shutdown, not end-of-file
This commit is contained in:
parent
fd18bd84ca
commit
bc81f9bed6
1 changed files with 3 additions and 3 deletions
|
@ -84,9 +84,9 @@ class MediaMpvPlugin(MediaPlugin):
|
||||||
bus.post(MediaPauseEvent(resource=self._get_current_resource()))
|
bus.post(MediaPauseEvent(resource=self._get_current_resource()))
|
||||||
elif evt == Event.UNPAUSE:
|
elif evt == Event.UNPAUSE:
|
||||||
bus.post(MediaPlayEvent(resource=self._get_current_resource()))
|
bus.post(MediaPlayEvent(resource=self._get_current_resource()))
|
||||||
elif evt == Event.END_FILE or evt == Event.SHUTDOWN:
|
# elif evt == Event.END_FILE or evt == Event.SHUTDOWN:
|
||||||
if evt == Event.SHUTDOWN:
|
elif evt == Event.SHUTDOWN:
|
||||||
self._player = None
|
self._player = None
|
||||||
self._mpv_stopped_event.set()
|
self._mpv_stopped_event.set()
|
||||||
bus.post(MediaStopEvent())
|
bus.post(MediaStopEvent())
|
||||||
return callback
|
return callback
|
||||||
|
|
Loading…
Reference in a new issue