Page 1 of 1
Using libvlccore inside a libvlc application
Posted: 02 Oct 2009 12:54
by afiestas
Hi!
Is there any example or tutorial of how to mess libvlccore and libvlc? I know this is tricky but afaik if I want to modify vars without restart the player (use var_Set) I need it.
Thanks !
Re: Using libvlccore inside a libvlc application
Posted: 03 Oct 2009 11:00
by Rémi Denis-Courmont
Code: Select all
struct vlc_object_t *libvlc_get_vlc_instance(libvlc_instance_t *p_instance);
returns the internal VLC main object. After that you can use most libvlccore functions.
Re: Using libvlccore inside a libvlc application
Posted: 05 Oct 2009 12:51
by afiestas
Thanks!
I can change the brightness now :p
I needed to define the macro typeof myself because seems that it's not available in g++ (4.3.1) basically what I did is an alias typeof->__typeof__
#define typeof(X) __typeof__(X)
Once again thanks!
Re: Using libvlccore inside a libvlc application
Posted: 05 Oct 2009 16:44
by afiestas
One more question: Is possible to add/remove filters using libvlccore?
I've tried it by many ways but I have not found the right one :/ for example I tried vout_EnableFilter (vout == video output right?)
Thanks!
Ps: Wow! I just saw
[16:49] <CIA-80> Rémi Denis-Courmont master include/vlc_common.h: Use __typeof__ which works with any GNU C profile, not like typeof
That was fast!
Re: Using libvlccore inside a libvlc application
Posted: 07 Oct 2009 10:21
by afiestas
Well after a bit of research I'm able to add/remove effects, thx for the help!
One small question which remains in my mind is what is the right way of get "video output" object, at the moment I'm using vlc_list_children because vlc_object_find_name is not working :/ any tip on that?
Thx again!
Re: Using libvlccore inside a libvlc application
Posted: 07 Oct 2009 17:38
by Rémi Denis-Courmont
input_GetVout() is the recommended way to get the video output.