[vlc-commits] video_filter: marq/rss: set default size to 0

Francois Cartegnie git at videolan.org
Thu Aug 13 15:24:59 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 10 23:33:27 2015 +0200| [32e39d70f3df20566bd2017c7e127eadddee37e3] | committer: Francois Cartegnie

video_filter: marq/rss: set default size to 0

use or don't use filter. -1 has no better
meaning than 0 and 0 is for new text-style

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

 modules/video_filter/marq.c |    6 +++---
 modules/video_filter/rss.c  |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/video_filter/marq.c b/modules/video_filter/marq.c
index ece80fb..5ffeb41 100644
--- a/modules/video_filter/marq.c
+++ b/modules/video_filter/marq.c
@@ -108,7 +108,7 @@ struct filter_sys_t
 #define OPACITY_LONGTEXT N_("Opacity (inverse of transparency) of " \
     "overlayed text. 0 = transparent, 255 = totally opaque. " )
 #define SIZE_TEXT N_("Font size, pixels")
-#define SIZE_LONGTEXT N_("Font size, in pixels. Default is -1 (use default " \
+#define SIZE_LONGTEXT N_("Font size, in pixels. Default is 0 (use default " \
     "font size)." )
 
 #define COLOR_TEXT N_("Color")
@@ -160,9 +160,9 @@ vlc_module_begin ()
     add_rgb( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
                  false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
-    add_integer( CFG_PREFIX "size", -1, SIZE_TEXT, SIZE_LONGTEXT,
+    add_integer( CFG_PREFIX "size", 0, SIZE_TEXT, SIZE_LONGTEXT,
                  false )
-        change_integer_range( -1, 4096)
+        change_integer_range( 0, 4096)
 
     set_section( N_("Misc"), NULL )
     add_integer( CFG_PREFIX "timeout", 0, TIMEOUT_TEXT, TIMEOUT_LONGTEXT,
diff --git a/modules/video_filter/rss.c b/modules/video_filter/rss.c
index ba47519..0f050c7 100644
--- a/modules/video_filter/rss.c
+++ b/modules/video_filter/rss.c
@@ -148,7 +148,7 @@ struct filter_sys_t
     "overlay text. 0 = transparent, 255 = totally opaque." )
 
 #define SIZE_TEXT N_("Font size, pixels")
-#define SIZE_LONGTEXT N_("Font size, in pixels. Default is -1 (use default " \
+#define SIZE_LONGTEXT N_("Font size, in pixels. Default is 0 (use default " \
     "font size)." )
 
 #define COLOR_TEXT N_("Color")
@@ -210,8 +210,8 @@ vlc_module_begin ()
     add_rgb( CFG_PREFIX "color", 0xFFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
                   false )
         change_integer_list( pi_color_values, ppsz_color_descriptions )
-    add_integer( CFG_PREFIX "size", -1, SIZE_TEXT, SIZE_LONGTEXT, false )
-        change_integer_range( -1, 4096)
+    add_integer( CFG_PREFIX "size", 0, SIZE_TEXT, SIZE_LONGTEXT, false )
+        change_integer_range( 0, 4096)
 
     set_section( N_("Misc"), NULL )
     add_integer( CFG_PREFIX "speed", 100000, SPEED_TEXT, SPEED_LONGTEXT,



More information about the vlc-commits mailing list