[vlc-commits] Add range to cols and rows of Wall video filter

Kaarlo Raiha git at videolan.org
Wed Apr 4 20:25:13 CEST 2012


vlc | branch: master | Kaarlo Raiha <kaarlo.raiha at gmail.com> | Sat Mar 31 18:49:00 2012 +0300| [0505e0641e21cc84cbe1bec5eeb302e89c0da243] | committer: Rémi Denis-Courmont

Add range to cols and rows of Wall video filter

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0505e0641e21cc84cbe1bec5eeb302e89c0da243
---

 modules/video_filter/wall.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/wall.c b/modules/video_filter/wall.c
index 6b207cd..e7d4b23 100644
--- a/modules/video_filter/wall.c
+++ b/modules/video_filter/wall.c
@@ -37,6 +37,9 @@
 /* FIXME it is needed for VOUT_ALIGN_* only */
 #include <vlc_vout.h>
 
+#define ROW_MAX (15)
+#define COL_MAX (15)
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
@@ -69,7 +72,9 @@ vlc_module_begin()
     set_subcategory( SUBCAT_VIDEO_VFILTER )
 
     add_integer( CFG_PREFIX "cols", 3, COLS_TEXT, COLS_LONGTEXT, false )
+    change_integer_range( 1, COL_MAX )
     add_integer( CFG_PREFIX "rows", 3, ROWS_TEXT, ROWS_LONGTEXT, false )
+    change_integer_range( 1, ROW_MAX )
     add_string( CFG_PREFIX "active", NULL, ACTIVE_TEXT, ACTIVE_LONGTEXT,
                  true )
     add_string( CFG_PREFIX "element-aspect", "16:9", ASPECT_TEXT, ASPECT_LONGTEXT, false )
@@ -97,8 +102,6 @@ typedef struct
     int  i_top;
 } wall_output_t;
 
-#define ROW_MAX (15)
-#define COL_MAX (15)
 struct video_splitter_sys_t
 {
     int           i_col;



More information about the vlc-commits mailing list