]> git.sesse.net Git - vlc/commitdiff
video filter module - for thehomebrewAmbiLight (AtmoLight) [1/3]: vout_intf.diff
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 12 Feb 2008 22:04:18 +0000 (22:04 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 12 Feb 2008 22:04:18 +0000 (22:04 +0000)
Add a variable to the video output core which is triggered after each crop parmaeters change.

src/video_output/vout_intf.c

index 9a56bbb03089e1ac337fadb3f559c261ccc8101e..466b1c79a93d83357391c072917d8afcb97529f7 100644 (file)
@@ -347,6 +347,9 @@ void vout_IntfInit( vout_thread_t *p_vout )
         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 */
     psz_buf = config_GetPsz( p_vout, "custom-crop-ratios" );
     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_height );
 
+    var_SetVoid( p_vout, "crop-update" );
+
     return VLC_SUCCESS;
 }