Page 1 of 1

libvlc_media_subitems() -> NULL Windows, OK Linux

Posted: 04 Jan 2018 19:46
by leftwing
I wrote an app that accesses YouTube live streams by using the most accepted method discussed in this forum. Here is an excerpt.

libvlc_media_parse(web_media);
libvlc_media_list_t *list = libvlc_media_subitems(web_media);
libvlc_media_list_lock(list);
libvlc_media_t *video_media = libvlc_media_list_item_at_index(list, 0);
libvlc_media_list_unlock(list);
libvlc_media_release(web_media);

libvlc_media subitems() returns a valid list when I build the code on Ubuntu 16.04 using VLC 2.2.2 but it returns NULL when I build on Windows 10 using VLC 2.2.8. One difference is that my Linux build is 64-bit and my Windows build is 32-bit. I defined environment VLC_PLUGIN_PATH in Windows so I don't think there is a problem finding LUA scripts.

Is there something I have missed or is there a VLC bug in Windows that doesn't exist in Linux?

Re: libvlc_media_subitems() -> NULL Windows, OK Linux

Posted: 14 Jan 2018 11:19
by Jean-Baptiste Kempf
Look at the logs, to tell you if the lua scripts are found.