Page 1 of 1

LibVLC: libvlc_media_new_path never returns NULL

Posted: 07 Jun 2016 21:08
by zyend
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.

Re: LibVLC: libvlc_media_new_path never returns NULL

Posted: 07 Jun 2016 22:29
by RĂ©mi Denis-Courmont
It does not matter if the file exists, as long as you don't start playing or preparsing.