I am using the exact same code as here. I just replaced the file reading part with this: char* filename = "testVLC.mpg"; media = libvlc_media_new_path(vlcInstance, filename);
I get a segmentation fault at the second line above. The video file is in the same folder as the cpp file. Am I doing something wrong?
If you use libvlc v2.2 - you have to use slightly modified libvlc
tree (I have one prepared, please extract it from command line, to preserve symlinks)
The problem is libvlc v2.2 has a bug which leads to load libvlccore
by plugins from wrong place