i'm trying to get media list from sap with sth like this:
Code: Select all
libvlc_media_list_t *mediaList = libvlc_media_discoverer_media_list(disc);
libvlc_media_list_lock(mediaList);
int mCount = libvlc_media_list_count(mediaList, &ex);
libvlc_media_t *media = libvlc_media_list_item_at_index(mediaList, 0, &ex);
char *mrl = libvlc_media_get_mrl(media, &ex);
libvlc_media_list_t *subs = libvlc_media_subitems(media, &ex); // <-- trying to get media's childs
libvlc_media_list_lock(subs);
int sCount = libvlc_media_list_count(subs, &ex); // <-- result is 0 allways :(
libvlc_media_list_unlock(subs);
/* ... trimmed ... */