[vlc-devel] [PATCH v5 3/3] stream_out: standard: add 'srt'

Justin Kim justin.kim at collabora.com
Fri Aug 25 09:18:01 CEST 2017


SRT is similar to UDP.

Signed-off-by: Justin Kim <justin.kim at collabora.com>
---
 configure.ac                   | 2 +-
 modules/stream_out/Makefile.am | 1 +
 modules/stream_out/standard.c  | 8 +++++++-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0c3981e8cc..e05645f377 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3862,7 +3862,7 @@ AM_CONDITIONAL([HAVE_LIRC], [test "${have_lirc}" = "yes"])
 dnl
 dnl  SRT plugin
 dnl
-PKG_ENABLE_MODULES_VLC([SRT], [access_srt access_output_srt], [srt >= 1.2.0], [SRT input/output plugin], [auto])
+PKG_ENABLE_MODULES_VLC([SRT], [access_srt access_output_srt], [srt >= 1.2.0], [SRT input/output plugin], [auto], [], [], [-DENABLE_SRT])
 
 EXTEND_HELP_STRING([Visualisations and Video filter plugins:])
 dnl
diff --git a/modules/stream_out/Makefile.am b/modules/stream_out/Makefile.am
index ba84a3ceae..8a536d302e 100644
--- a/modules/stream_out/Makefile.am
+++ b/modules/stream_out/Makefile.am
@@ -6,6 +6,7 @@ libstream_out_delay_plugin_la_SOURCES = stream_out/delay.c
 libstream_out_stats_plugin_la_SOURCES = stream_out/stats.c
 libstream_out_description_plugin_la_SOURCES = stream_out/description.c
 libstream_out_standard_plugin_la_SOURCES = stream_out/standard.c
+libstream_out_standard_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_access_output_srt)
 libstream_out_standard_plugin_la_LIBADD = $(SOCKET_LIBS)
 libstream_out_duplicate_plugin_la_SOURCES = stream_out/duplicate.c
 libstream_out_es_plugin_la_SOURCES = stream_out/es.c
diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
index d835e6fc4f..8f78702835 100644
--- a/modules/stream_out/standard.c
+++ b/modules/stream_out/standard.c
@@ -82,11 +82,17 @@ static void     Close   ( vlc_object_t * );
 
 #define SOUT_CFG_PREFIX "sout-standard-"
 
+#ifdef ENABLE_SRT
+#define SRT_SHORTCUT "srt"
+#else
+#define SRT_SHORTCUT
+#endif
+
 vlc_module_begin ()
     set_shortname( N_("Standard"))
     set_description( N_("Standard stream output") )
     set_capability( "sout stream", 50 )
-    add_shortcut( "standard", "std", "file", "http", "udp" )
+    add_shortcut( "standard", "std", "file", "http", "udp", SRT_SHORTCUT )
     set_category( CAT_SOUT )
     set_subcategory( SUBCAT_SOUT_STREAM )
 
-- 
2.14.1



More information about the vlc-devel mailing list