libvlc_media_subitems() -> NULL Windows, OK Linux

This forum is about all development around libVLC.
leftwing
New Cone
New Cone
Posts: 9
Joined: 03 May 2017 01:51

libvlc_media_subitems() -> NULL Windows, OK Linux

Postby leftwing » 04 Jan 2018 19:46

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 14 Jan 2018 11:19

Look at the logs, to tell you if the lua scripts are found.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests