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

Rémi Denis-Courmont remi at remlab.net
Tue Aug 8 21:15:38 CEST 2017


Le keskiviikkona 9. elokuuta 2017, 3.49.18 EEST Justin Kim a écrit :
> SRT is similar to UDP.
> 
> Signed-off-by: Justin Kim <justin.kim at collabora.com>
> ---
>  configure.ac                  | 1 +
>  modules/stream_out/standard.c | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index 05e01c544f..5f186dbb7b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -3873,6 +3873,7 @@ AS_IF([test "${enable_srt}" != "no"], [
>              VLC_ADD_CXXFLAGS([srt], [$SRT_CFLAGS])
>              VLC_ADD_CFLAGS([srt], [$SRT_CFLAGS])
>              VLC_ADD_LIBS([srt], [$SRT_LIBS])
> +            AC_DEFINE(ENABLE_SRT, 1, [Define if you want the SRT support])

You don´t need that here. You already have an automake conditional, so you can 
just expand the standard sout plugin CPPFLAGS/CFLAGS directly from within the 
Makefile.am.

>          ], [
>              AS_IF([test -n "${enable_srt}"],
>                  [AC_MSG_ERROR([${SRT_PKG_ERRORS} (required for srt).])],
> diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
> index d835e6fc4f..a79451ac09 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 ENABLE_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 )


-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list