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:

This function gets 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:

>=0
The position of the current entry.
-1
An error occurred (call mmplaylist_last_error_get() for details).