[vlc-devel] [PATCH v2] stream_out: standard: add 'srt'
Justin Kim
justin.kim at collabora.com
Wed Aug 9 20:42:08 CEST 2017
SRT is similar to UDP.
Signed-off-by: Justin Kim <justin.kim at collabora.com>
---
modules/stream_out/Makefile.am | 3 +++
modules/stream_out/standard.c | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/modules/stream_out/Makefile.am b/modules/stream_out/Makefile.am
index ba84a3ceae..6a45df110d 100644
--- a/modules/stream_out/Makefile.am
+++ b/modules/stream_out/Makefile.am
@@ -7,6 +7,9 @@ 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_LIBADD = $(SOCKET_LIBS)
+if HAVE_SRT
+libstream_out_standard_plugin_la_CFLAGS = $(AM_CFLAGS) -DHAVE_SRT
+endif
libstream_out_duplicate_plugin_la_SOURCES = stream_out/duplicate.c
libstream_out_es_plugin_la_SOURCES = stream_out/es.c
libstream_out_display_plugin_la_SOURCES = stream_out/display.c
diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
index d835e6fc4f..1f0e2a2ac4 100644
--- a/modules/stream_out/standard.c
+++ b/modules/stream_out/standard.c
@@ -86,7 +86,11 @@ vlc_module_begin ()
set_shortname( N_("Standard"))
set_description( N_("Standard stream output") )
set_capability( "sout stream", 50 )
+#ifdef HAVE_SRT
+ add_shortcut( "standard", "std", "file", "http", "udp", "srt" )
+#else
add_shortcut( "standard", "std", "file", "http", "udp" )
+#endif
set_category( CAT_SOUT )
set_subcategory( SUBCAT_SOUT_STREAM )
--
2.14.0
More information about the vlc-devel
mailing list