qt creator - libvlc_new (0, NULL); segmentation fault -


i have problem when use line :

   vlcinstance = libvlc_new(0, null); 

vlcinstance declare in header:

  libvlc_media_player_t *vlcplayer; 

i using qt 5.0.1 , have error:

the inferior stopped because received signal operating system.  signal name : sigsegv signal meaning : segmentation fault 

can me?

i using qt creator 2.7.2 qt 5.1.0 on 64-bit kubuntu 13.04. i'm using vlc-2.2.0-git.

i created new qt project.

i added new project file (change vlc paths needed):

includepath += /home/linux/vlc/install/include libs += -l"/home/linux/vlc/install/lib" -lvlc 

bare-bones main.cpp (including code apparently segfaults):

#include <qtdebug>  #include "vlc/libvlc.h" #include "vlc/libvlc_media.h" #include "vlc/libvlc_media_player.h"  int main(int argc, char *argv[]) {     qdebug() << "starting...";      libvlc_instance_t* p_instance = libvlc_new(0, null);     qdebug() << "p_instance" << p_instance;      if (p_instance) {         libvlc_media_player_t *p_media_player = libvlc_media_player_new(p_instance);         qdebug() << "p_media_player" << p_media_player;          if (p_media_player) {             libvlc_media_player_release(p_media_player);         }          libvlc_free(p_instance);     }      qdebug() << "exit normally"; } 

this runs fine me, no segfault:

starting...  p_instance 0x19140f0  p_media_player 0x19da6d8  exit 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -