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:

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

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

Returns:

A nonnegative value indicating the number of playlist entries

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