problem with my vlc app using VLC 0.9.8a

This forum is about all development around libVLC.
uav_69
New Cone
New Cone
Posts: 2
Joined: 22 Jan 2009 00:14

problem with my vlc app using VLC 0.9.8a

Postby uav_69 » 04 Feb 2009 07:44

i am writing a simple program using VS C++ (2008) to run video stream using the new VLC 0.9.8a version and having problem to instantiate vlc - eg: it stops at libvlc = libvlc_new(vlc_argc, vlc_argv, &ex);

Below is my source code...any input or help would be appreciated...
thanks



#include <stdio.h>
#include <math.h>
#include <stdlib.h>


#include "vlc.h"
#include "libvlc.h"
#include "libvlc_structures.h"
#include "libvlc_events.h"



static void except (libvlc_exception_t *ex)
{
if(libvlc_exception_raised(ex))
{
fprintf(stderr, "exception: %s\n", libvlc_exception_get_message(ex));
exit(1);
}

libvlc_exception_clear(ex);
}

int main(int argc, char *argv[])
{

libvlc_exception_t ex;
libvlc_instance_t *libvlc;
libvlc_media_t *m;
libvlc_media_player_t *mp;


char const *vlc_argv[] = {
"-q",
"--plugin-path", "C://My Documents//Visual Studio 2008//Projects//My_VCL//Debug//plugins",
"--ignore-config", /* Don't use VLC's config files */
"--noaudio", //disable audio
"--fullscreen",
};

int vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);


libvlc_exception_init(&ex);
libvlc = libvlc_new(vlc_argc, vlc_argv, &ex);
except(&ex);

m = libvlc_media_new(libvlc, "C://Test.mpg", &ex);
except(&ex);

mp = libvlc_media_player_new_from_media(m, &ex);
except(&ex);

libvlc_media_release(m);
libvlc_media_player_play(mp, &ex);
except(&ex);


/*
* Stop stream and clean up libVLC
*/
libvlc_media_player_stop(mp, &ex);
except(&ex);

libvlc_media_player_release(mp);
libvlc_release(libvlc);

return 0;
}

Beardless2
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 02 Feb 2007 09:53

Re: problem with my vlc app using VLC 0.9.8a

Postby Beardless2 » 04 Feb 2009 10:02

your not the only the one im afraid - been having this issue too.

viewtopic.php?f=32&t=54076

gr3go
New Cone
New Cone
Posts: 7
Joined: 27 Feb 2009 12:51

Re: problem with my vlc app using VLC 0.9.8a

Postby gr3go » 27 Feb 2009 12:54

i am writing a simple program using VS C++ (2008) to run video stream using the new VLC 0.9.8a version and
When compiling your code I get some compilation error...
Did you modified those include files?("vlc.h","libvlc.h",""libvlc_structures.h","libvlc_events.h")?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 59 guests