summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2016-08-04 17:06:34 +0200
committerjaseg <code@jaseg.net>2016-08-04 17:06:34 +0200
commit47919b0ca805fc2889ef67de6a19dcaae6c6927f (patch)
treecddbf643dd38596b226c51a4435d9d7726e36710
parent0c5530aa271cb2701205264dab4e8394ed76e185 (diff)
downloadpython-mpv-47919b0ca805fc2889ef67de6a19dcaae6c6927f.tar.gz
python-mpv-47919b0ca805fc2889ef67de6a19dcaae6c6927f.tar.bz2
python-mpv-47919b0ca805fc2889ef67de6a19dcaae6c6927f.zip
Fix event callback foo
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index 9c6ee5f..ba095ea 100644
--- a/mpv.py
+++ b/mpv.py
@@ -302,7 +302,7 @@ def _event_loop(event_handle, playback_cond, event_callbacks, property_handlers,
ev = devent['event']
log_handler('{}: {}: {}'.format(ev['level'], ev['prefix'], ev['text']))
for callback in event_callbacks:
- callback.call(devent)
+ callback(devent)
if eid == MpvEventID.SHUTDOWN:
_mpv_detach_destroy(event_handle)
return