Commit 53605c9a authored by Olivier Aubert's avatar Olivier Aubert

python-ctypes: in app mode, quit on end-of-stream

parent 60fb88bd
......@@ -76,7 +76,7 @@ if __name__ == '__main__':
p.play()
e=p.event_manager()
e.event_attach(EventType.MediaPlayerStopped, end_callback, None)
e.event_attach(EventType.MediaPlayerEndReached, end_callback, None)
def print_info():
"""Print information about the media."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment