LibVLC: libvlc_media_new_path never returns NULL

This forum is about all development around libVLC.
zyend
New Cone
New Cone
Posts: 1
Joined: 07 Jun 2016 21:01

LibVLC: libvlc_media_new_path never returns NULL

Postby zyend » 07 Jun 2016 21:08

Hi all,

I just started getting into LibVlc.
I've just downloaded the latest Vlc for Windows.

For my sample code, I mostly use libvlc_media_new_path function to specify local video file.
But, I just tried to pass an unexisting path in parameter....and it doesn't return NULL. :shock:

Furthermore,libvlc_media_get_state returns NothingSpecial... :mrgreen:

Humm...Did I forget something ? Or should I check the validity of the media with another function ?

Thanks for your feedback.

Z.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: LibVLC: libvlc_media_new_path never returns NULL

Postby Rémi Denis-Courmont » 07 Jun 2016 22:29

It does not matter if the file exists, as long as you don't start playing or preparsing.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests