i've tried with this function but nothing happens...
Code: Select all
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 );
}
Code: Select all
float libvlc_video_get_contrast( libvlc_media_player_t *p_mi,
libvlc_exception_t *p_e )
{
vout_thread_t *p_vout = GetVout( p_mi, p_e );
float contrast;
if( !p_vout ) return 5;
contrast = var_GetFloat( p_vout, "contrast" );
vlc_object_release( p_vout );
return contrast;
}