Commit bb41fd6d authored by Antoine Cellerier's avatar Antoine Cellerier

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.
parent 0eef3125
...@@ -347,6 +347,9 @@ void vout_IntfInit( vout_thread_t *p_vout ) ...@@ -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, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment