[vlc-devel] Libvlc: problem with vlc_object_find_name()

Pierre d'Herbemont pdherbemont at free.fr
Mon Apr 28 19:55:55 CEST 2008


On Apr 25, 2008, at 6:06 AM, Tanguy Krotoff wrote:
> Hello
>
> I would like to add filters to libvlc (hue, contrast...)
> And I'm stuck :/
>
> For example, this little code inside control/video.c fails:
>
> vout_thread_t *p_vout = GetVout( p_mi, p_e );
> vlc_object_t *p_filter = (vlc_object_t *) vlc_object_find_name(
> p_vout, "adjust", FIND_ANYWHERE );
> var_SetInteger( p_filter, "hue", i_value );

You can just do (and skip the adjust module):

> var_SetInteger( p_vout, "hue", i_value );


(at least that what does the qt4 module)

Pierre.



More information about the vlc-devel mailing list