mmplaylist_current_pos_get()

Get the position of the current playlist entry.

Synopsis:

#include <mm/mmplaylist.h>
int mmplaylist_current_pos_get( mmplaylist_t *pl )

Arguments:

pl
A valid session handle

Library:

libmmplaylist

Description:

Get the position of the current playlist entry. When the current position is at the end of the playlist, this function returns -1 and sets an error code of mmplaylist_end_of_playlist.

Returns:

A nonnegative value for the position of the current entry, on success

-1 on error (use mmplaylist_last_error_get() to get error information)