[vlc-devel] assert in messages.c
Max Koutsanov
max at monsoonmultimedia.com
Thu Jun 11 08:55:43 CEST 2009
Hello,
Please help me with a littel question.
I try write my own player app usig libvlc, qt and run it on MacOS
All is fine, but I have assert in messages.c:342 on p_this..
If I use Caca renderer - all works, but if i use opengl - assert.
As sample, I use Barrys branch with qt mediacenter.
it's my args:
const char * const vlc_args[] = {
//"-I", "macosx", /* Don't use any interface */
//"--ignore-config", /* Don't use VLC's config */
//"--extraintf=logger", //log anything
"--verbose=2", //be much more verbose then normal for debugging purpose
"--no-audio",
"--no-stats",
"--no-media-library",
"--ignore-config",
"--intf=qt4",
"--no-video-title-show",
"-V", "caca",
//"-V", "opengl",
//"--opengl",
"--plugin-path=/Projects/vlc/VLC.app/Contents/MacOS/modules"
};
here simple player workflow..
libvlc_exception_init(&_vlcexcep);
_vlcinstance=libvlc_new(sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args,&_vlcexcep); //tricky calculation of the char space used
_mp = libvlc_media_player_new (_vlcinstance, &_vlcexcep);
_m = libvlc_media_new (_vlcinstance, file.toAscii(), &_vlcexcep);
libvlc_media_player_set_media (_mp, _m, &_vlcexcep);
libvlc_media_player_set_drawable(_mp, _videoWidget->winId(), &_vlcexcep );
libvlc_media_player_play (_mp, &_vlcexcep );
...
when play started, opengl widnow appeared (hmm, I think it will use widget window for render..) and stop with assert.
What wrong ?
Thanks in advance,
Max.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090611/d2ccac45/attachment.html>
More information about the vlc-devel
mailing list