Vout-filter modification for autoscaling
authorJoseph Tulou <brezhoneg1@yahoo.fr>
Fri, 30 Jan 2009 16:29:59 +0000 (17:29 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 2 Feb 2009 02:32:22 +0000 (03:32 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_filter/filter_common.h

index 2efc052..ad1a976 100644 (file)
@@ -90,11 +90,15 @@ static int SetParentVal( vlc_object_t *p_this, char const *psz_var,
 
 #define ADD_PARENT_CALLBACKS( handler ) \
     var_AddCallback( p_vout, "fullscreen", handler, NULL );                   \
+    var_AddCallback( p_vout, "autoscale", handler, NULL );                    \
+    var_AddCallback( p_vout, "scale", handler, NULL );                 \
     var_AddCallback( p_vout, "aspect-ratio", handler, NULL );                 \
     var_AddCallback( p_vout, "crop", handler, NULL );
 
 #define DEL_PARENT_CALLBACKS( handler ) \
     var_DelCallback( p_vout, "fullscreen", handler, NULL );                   \
+    var_DelCallback( p_vout, "autoscale", handler, NULL );                    \
+    var_DelCallback( p_vout, "scale", handler, NULL );                 \
     var_DelCallback( p_vout, "aspect-ratio", handler, NULL );                 \
     var_DelCallback( p_vout, "crop", handler, NULL );