Browse Source

video filter module - for thehomebrewAmbiLight (AtmoLight) [1/3]: vout_intf.diff

Add a variable to the video output core which is triggered after each crop parmaeters change.
pull/2/head
Antoine Cellerier 19 years ago
parent
commit
bb41fd6de4
  1. 5
      src/video_output/vout_intf.c

5
src/video_output/vout_intf.c

@ -347,6 +347,9 @@ void vout_IntfInit( vout_thread_t *p_vout )
var_Change( p_vout, "crop", VLC_VAR_ADDCHOICE, &val, &text ); var_Change( p_vout, "crop", VLC_VAR_ADDCHOICE, &val, &text );
} }
/* update triggered every time the vout's crop parameters are changed */
var_Create( p_vout, "crop-update", VLC_VAR_VOID );
/* Add custom crop ratios */ /* Add custom crop ratios */
psz_buf = config_GetPsz( p_vout, "custom-crop-ratios" ); psz_buf = config_GetPsz( p_vout, "custom-crop-ratios" );
AddCustomRatios( p_vout, "crop", psz_buf ); AddCustomRatios( p_vout, "crop", psz_buf );
@ -1101,6 +1104,8 @@ static int CropCallback( vlc_object_t *p_this, char const *psz_cmd,
p_vout->fmt_in.i_visible_width, p_vout->fmt_in.i_visible_width,
p_vout->fmt_in.i_visible_height ); p_vout->fmt_in.i_visible_height );
var_SetVoid( p_vout, "crop-update" );
return VLC_SUCCESS; return VLC_SUCCESS;
} }

Loading…
Cancel
Save