[vlc] LibVLC and VLC_VariableGet()

Oliver Dole odole at pleyo.com
Mon Jun 25 11:18:08 CEST 2007


Hello,

I try to use VLC_Variable_Get() in libvlc (vlc-0.8.6b) but I always
get a VLC_ENOVAR error code.
Here is a sample code I use:
m_vlcId = VLC_Create();
VLC_Init(m_vlcId, 2, command); //command set to {"vlc", "-Vimage"}
result = VLC_VariableGet(m_vlcId, "image-out-replace", &var);
if (result != 0) {
    printf("FAILURE(%d)\n", result);
    return -1;
} else
    printf("my var is set to %d\n", var.b_bool);

My goal would be to change some default settings from Modules/images.
But as I am unable to get settings, I don't even try to change them :p
So if anyone can tell me where I am wrong ?

Regards,

-- 
Olivier DOLE
Pleyo
Software Engineer
_______________________________________________
vlc mailing list
vlc at videolan.org
http://mailman.videolan.org/listinfo/vlc



More information about the vlc mailing list