[vlc-devel] [V2 5/5] packetizer: add some shortcuts

Zhao Zhili quinkblack at foxmail.com
Thu May 31 09:22:08 CEST 2018


---
 modules/packetizer/flac.c        | 1 +
 modules/packetizer/h264.c        | 1 +
 modules/packetizer/hevc.c        | 1 +
 modules/packetizer/mpegvideo.c   | 2 ++
 modules/packetizer/rv34_parser.c | 1 +
 modules/packetizer/vc1.c         | 1 +
 6 files changed, 7 insertions(+)

diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index 6044042..730185f 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -49,6 +49,7 @@ vlc_module_begin()
     set_description(N_("Flac audio packetizer"))
     set_capability("packetizer", 50)
     set_callbacks(Open, Close)
+    add_shortcut( "flac" )
 vlc_module_end()
 
 /*****************************************************************************
diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 4f8a97d..466965f 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -62,6 +62,7 @@ vlc_module_begin ()
     set_description( N_("H.264 video packetizer") )
     set_capability( "packetizer", 50 )
     set_callbacks( Open, Close )
+    add_shortcut( "h264" )
 vlc_module_end ()
 
 
diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index d71a0bf..b12db18 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -57,6 +57,7 @@ vlc_module_begin ()
     set_description(N_("HEVC/H.265 video packetizer"))
     set_capability("packetizer", 50)
     set_callbacks(Open, Close)
+    add_shortcut( "hevc", "h265" )
 vlc_module_end ()
 
 
diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index 318b3f7..7614fec 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -75,9 +75,11 @@ vlc_module_begin ()
     set_shortname( N_("MPEG Video") )
     set_capability( "packetizer", 50 )
     set_callbacks( Open, Close )
+    add_shortcut( "mpegvideo" )
 
     add_bool( "packetizer-mpegvideo-sync-iframe", false, SYNC_INTRAFRAME_TEXT,
               SYNC_INTRAFRAME_LONGTEXT, true )
+
 vlc_module_end ()
 
 enum mpeg_startcode_e
diff --git a/modules/packetizer/rv34_parser.c b/modules/packetizer/rv34_parser.c
index 57747e1..0ceb5cf 100644
--- a/modules/packetizer/rv34_parser.c
+++ b/modules/packetizer/rv34_parser.c
@@ -121,4 +121,5 @@ vlc_module_begin ()
     set_description( N_("RV30/RV40 packetizer") )
     set_capability( "packetizer", 50 )
     set_callbacks( Open, NULL )
+    add_shortcut( "rv34_parser" )
 vlc_module_end ()
diff --git a/modules/packetizer/vc1.c b/modules/packetizer/vc1.c
index 7ca438f..0b2a5a3 100644
--- a/modules/packetizer/vc1.c
+++ b/modules/packetizer/vc1.c
@@ -54,6 +54,7 @@ vlc_module_begin ()
     set_description( N_("VC-1 packetizer") )
     set_capability( "packetizer", 50 )
     set_callbacks( Open, Close )
+    add_shortcut( "vc1" )
 vlc_module_end ()
 
 /*****************************************************************************
-- 
2.9.5





More information about the vlc-devel mailing list