How to get SAP announcements?
Posted: 10 Dec 2009 12:03
Hi there,
i'm trying to get media list from sap with sth like this:
There is no any problem if all items are not categorized from SAP (i mean they all are in root - same first level), but i can't get root item's childs (using libvlc_media_subitems()).. Any suggestions?
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 ... */