[vlc-devel] Problem using libvlc

Rémi Denis-Courmont remi at remlab.net
Tue May 19 21:11:12 CEST 2009


Le mardi 19 mai 2009 20:13:54 Andrea Visinoni, vous avez écrit :
> i've got some problem using libvlc in a C program under linux.
> In attachment there is bunch of lines of code i use to initialize libvlc
> in order to play some videos in a playlist.
> I start with "libvlc_media_list_player_play"
> My problem is that once the first video stops my app freeze and don't
> jump to the next video, i can't even restart playing the first video.
> Also using "libvlc_media_list_player_next" my app freeze.

This a known bug. In fact, we have a failing case for it in the test suite.

> Another problem is: how can i set contrast, brightness, hue ecc.. ?
> I've tried modifying src/control/video.c adding and exporting my custom
> function like this one:
>
> void libvlc_video_set_contrast( libvlc_media_player_t *p_mi, float
> contrast,
>                                 libvlc_exception_t *p_e )
> {
> 	vout_thread_t *p_vout = GetVout( p_mi, p_e );
>
> 	if( !p_vout ) return;
>
> 	var_SetFloat( p_vout, "contrast", contrast );
>      vlc_object_release( p_vout );
> }
>
> i get no errors, but i can't see a changes on the video...

"contrast" needs to be set on "adjust" video filter, not on a video output.

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list