mmplaylist_num_entries_get()

Get the number of entries in a playlist

Synopsis:

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

Arguments:

pl
A valid session handle.

Library:

libmmplaylist

Description:

This function gets the number of entries in a playlist. This operation can be very expensive, so the application should first check the num_entries_get_fast field in the mmplaylist_props_t structure to determine whether this operation can be completed quickly.

Note that calling this function on an empty playlist returns a value of 0.

Returns:

>=0
The number of playlist entries.
-1
An error occurred (call mmplaylist_last_error_get() for details).