[vlc-commits] Use capability rather than category for --sub-filter and --sub-source

Rémi Denis-Courmont git at videolan.org
Wed Jul 25 17:37:31 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 25 18:30:10 2012 +0300| [27fd9b93e210926ed3286823ffaacac5c4a918fd] | committer: Rémi Denis-Courmont

Use capability rather than category for --sub-filter and --sub-source

That way, only sources show up in the list of sources and filters in
the list of filters.

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

 src/libvlc-module.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index c95d0f0..075634f 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1678,10 +1678,10 @@ vlc_module_begin ()
     add_integer( "sub-margin", 0, SUB_MARGIN_TEXT,
                  SUB_MARGIN_LONGTEXT, true )
     set_section( N_( "Overlays" ) , NULL )
-    add_module_list_cat( "sub-source", SUBCAT_VIDEO_SUBPIC, NULL,
-                SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT, false )
-    add_module_list_cat( "sub-filter", SUBCAT_VIDEO_SUBPIC, NULL,
-                SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT, false )
+    add_module_list( "sub-source", "sub source", NULL,
+                     SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT, false )
+    add_module_list( "sub-filter", "sub filter", NULL,
+                     SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT, false )
 
 /* Input options */
     set_category( CAT_INPUT )



More information about the vlc-commits mailing list