char *psz_filter;
unsigned int i;
- psz_filter = config_GetPsz( p_intf, "video-filter" );
+ psz_filter = config_GetPsz( p_intf, "vout-filter" );
if( !strcmp( psz_mode, "None" ) )
{
- config_PutPsz( p_intf, "video-filter", "" );
+ config_PutPsz( p_intf, "vout-filter", "" );
}
else
{
if( !psz_filter || !*psz_filter )
{
- config_PutPsz( p_intf, "video-filter", "deinterlace" );
+ config_PutPsz( p_intf, "vout-filter", "deinterlace" );
}
else
{
psz_filter = realloc( psz_filter, strlen( psz_filter ) + 20 );
strcat( psz_filter, ",deinterlace" );
}
- config_PutPsz( p_intf, "video-filter", psz_filter );
+ config_PutPsz( p_intf, "vout-filter", psz_filter );
}
}
panel_sizer->SetSizeHints( panel );
/* Write down initial values */
- psz_filters = config_GetPsz( p_intf, "video-filter" );
+ psz_filters = config_GetPsz( p_intf, "vout-filter" );
if( psz_filters && strstr( psz_filters, "adjust" ) )
{
adjust_check->SetValue( 1 );
vout_thread_t *p_vout;
char *psz_parser, *psz_string;
- psz_string = config_GetPsz( p_intf, "video-filter" );
+ psz_string = config_GetPsz( p_intf, "vout-filter" );
if( !psz_string ) psz_string = strdup("");
}
}
/* Vout is not kept, so put that in the config */
- config_PutPsz( p_intf, "video-filter", psz_string );
+ config_PutPsz( p_intf, "vout-filter", psz_string );
/* Try to set on the fly */
p_vout = (vout_thread_t *)vlc_object_find( p_intf, VLC_OBJECT_VOUT,
FIND_ANYWHERE );
if( p_vout )
{
- var_SetString( p_vout, "video-filter", psz_string );
+ var_SetString( p_vout, "vout-filter", psz_string );
vlc_object_release( p_vout );
}
char *psz_filter_chain;
vlc_value_t val;
- /* We don't directly check for the "video-filter" variable for obvious
+ /* We don't directly check for the "vout-filter" variable for obvious
* performance reasons. */
if( p_vout->b_filter_change )
{
- var_Get( p_vout, "video-filter", &val );
+ var_Get( p_vout, "vout-filter", &val );
psz_filter_chain = val.psz_string;
if( psz_filter_chain && !*psz_filter_chain )
}
/* Look for the default filter configuration */
- var_Create( p_vout, "video-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
- var_Get( p_vout, "video-filter", &val );
+ var_Create( p_vout, "vout-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
+ var_Get( p_vout, "vout-filter", &val );
p_vout->psz_filter_chain = val.psz_string;
}
else
var_AddCallback( p_vout, "deinterlace", DeinterlaceCallback, NULL );
- var_Create( p_vout, "video-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
+ var_Create( p_vout, "vout-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
text.psz_string = _("Filters");
- var_Change( p_vout, "video-filter", VLC_VAR_SETTEXT, &text, NULL );
- var_AddCallback( p_vout, "video-filter", FilterCallback, NULL );
+ var_Change( p_vout, "vout-filter", VLC_VAR_SETTEXT, &text, NULL );
+ var_AddCallback( p_vout, "vout-filter", FilterCallback, NULL );
/* Calculate delay created by internal caching */
p_input_thread = (input_thread_t *)vlc_object_find( p_vout,
char *psz_mode = newval.psz_string;
char *psz_filter, *psz_deinterlace = NULL;
- var_Get( p_vout, "video-filter", &val );
+ var_Get( p_vout, "vout-filter", &val );
psz_filter = val.psz_string;
if( psz_filter ) psz_deinterlace = strstr( psz_filter, "deinterlace" );
var_Set( p_vout, "intf-change", val );
val.psz_string = psz_filter;
- var_Set( p_vout, "video-filter", val );
+ var_Set( p_vout, "vout-filter", val );
if( psz_filter ) free( psz_filter );
return VLC_SUCCESS;
/* Modify input as well because the vout might have to be restarted */
val.psz_string = newval.psz_string;
- var_Create( p_input, "video-filter", VLC_VAR_STRING );
- var_Set( p_input, "video-filter", val );
+ var_Create( p_input, "vout-filter", VLC_VAR_STRING );
+
+ var_Set( p_input, "vout-filter", val );
/* Now restart current video stream */
var_Get( p_input, "video-es", &val );