mmp_event_wait()

Wait until an event is available.

Synopsis:

#include <mmplayer/event.h>
 
int mmp_event_wait( mmplayer_hdl_t *hdl )

Arguments:

hdl
A player handle

Library:

mmplayerclient

Description:

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().

Returns:

0 on success, or -1 on error