Wait until an event is available.
#include <mmplayer/event.h> int mmp_event_wait( mmplayer_hdl_t *hdl )
Wait for an mm-player event. This function usually blocks until an event occurs, at which point it unblocks and you can call mmp_event_get() to get the event details.
Typically, you call mmp_event_wait() within an event-processing loop, right before you call mmr_event_get().
0 on success, or -1 on error