Search code examples
c++macoslibvlc

Segmentation Fault with Libvlc on Mac OSX


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?


Solution

  • 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