Keep wait_for_playback in waiting state during PAUSE

...to allow proper playback of network resources even in case of
buffering
This commit is contained in:
jaseg 2016-08-07 19:40:28 +02:00
parent dc1c4d89a5
commit 1acc39885f
1 changed files with 1 additions and 1 deletions

2
mpv.py
View File

@ -309,7 +309,7 @@ def _event_loop(event_handle, playback_cond, event_callbacks, property_handlers,
try:
devent = event.as_dict() # copy data from ctypes
eid = devent['event_id']
if eid in (MpvEventID.SHUTDOWN, MpvEventID.END_FILE, MpvEventID.PAUSE):
if eid in (MpvEventID.SHUTDOWN, MpvEventID.END_FILE):
with playback_cond:
playback_cond.notify_all()
if eid == MpvEventID.PROPERTY_CHANGE: