summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2016-08-07 19:40:28 +0200
committerjaseg <code@jaseg.net>2016-08-07 19:40:28 +0200
commit1acc39885fa503b09006c3467e0cccb8254295d6 (patch)
treed0d98b294acc93096f5b237012a9006107ccec5a /mpv.py
parentdc1c4d89a5dd918c9d9f586e93a316845d47e3bf (diff)
downloadpython-mpv-1acc39885fa503b09006c3467e0cccb8254295d6.tar.gz
python-mpv-1acc39885fa503b09006c3467e0cccb8254295d6.tar.bz2
python-mpv-1acc39885fa503b09006c3467e0cccb8254295d6.zip
Keep wait_for_playback in waiting state during PAUSE
...to allow proper playback of network resources even in case of buffering
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index 148e9a3..d45682f 100644
--- a/mpv.py
+++ b/mpv.py
@@ -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: