Page 1 of 1

error in a function libvlc

Posted: 08 May 2011 19:01
by isabelle
I compiled the source code of VLC-1.1.9 and I am working to develop a streaming server and I use libvlc functions but there is an error that occurs
J'uilise this feature
static void raise(libvlc_exception_t *exception) //ligne 7
{
if (libvlc_exception_raised (exception))
{
fprintf (stderr, "erreur: %s\n", libvlc_exception_get_message(exception));
exit (EXIT_FAILURE);
}
}



by compiling the file .c that contains this function on the shell, it gives me this error

src/video/video.c:7: error: variable or field ‘raise’ declared void
src/video/video.c:7: error: ‘libvlc_exception_t’ was not declared in this scope
src/video/video.c:7: error: ‘exception’ was not declared in this scope
mv: impossible d'évaluer «video.o»: Aucun fichier ou dossier de ce type

I need your help, if you have an idea feel free to help me

Re: error in a function libvlc

Posted: 08 May 2011 20:28
by Jean-Baptiste Kempf
You are using the old api in libVLC 1.1. This won't work.