[vlc-devel] [PATCH 1/2] access{_out}:srt: introduce SRT input/ouput

Jean-Baptiste Kempf jb at videolan.org
Tue Aug 8 22:52:31 CEST 2017


Hello Justin

On Tue, 8 Aug 2017, at 22:12, Justin Kim wrote:
> I can't find proper documents to use them.

See m4/vlc.m4 or the numerous examples of configure.ac:

PKG_ENABLE_MODULES_VLC([DCA], [dca], [libdca >= 0.0.5], [DTS Coherent
Acoustics support with libdca], [auto])

> Which script? I can't find document.

modules/list.sh

> >> +dnl
> >> +dnl  SRT plugin
> >> +dnl
> >> +AC_ARG_ENABLE(srt,
> >> +[AS_HELP_STRING([--disable-srt],[srt input/output plugin (default
> >> auto)])])
> >> +have_srt="no"
> >> +AS_IF([test "${enable_srt}" != "no"], [
> >> +    PKG_CHECK_MODULES(SRT, [srt >= 1.2.0], [
> >> +        have_srt="yes"
> >> +        AC_CHECK_HEADER([srt/srt.h], [
> >> +            VLC_ADD_PLUGIN([srt])
> >> +            VLC_ADD_CXXFLAGS([srt], [$SRT_CFLAGS])
> >> +            VLC_ADD_CFLAGS([srt], [$SRT_CFLAGS])
> >> +            VLC_ADD_LIBS([srt], [$SRT_LIBS])
> >> +        ], [
> >> +            AS_IF([test -n "${enable_srt}"],
> >> +                [AC_MSG_ERROR([${SRT_PKG_ERRORS} (required for srt).])],
> >> +                [AC_MSG_WARN([${SRT_PKG_ERRORS} (required for srt).])]
> >> +                )
> >> +        ])
> >> +    ], [
> >> +        AS_IF([test "x${enable_srt}" = "xyes"],
> >> +            [AC_MSG_ERROR([${SRT_PKG_ERRORS} (required for srt).])],
> >> +            [AC_MSG_WARN([${SRT_PKG_ERRORS} (required for srt).])]
> >> +            )
> >> +    ])
> >> +])
> >> +AM_CONDITIONAL([HAVE_SRT], [test "${have_srt}" = "yes"])
> > Why not using the PKG_VLC macro ? Is that not possible ?
> I don't find PKG_VLC macro. Where is it?

See above.

For you, it will probably be something like this:
PKG_ENABLE_MODULES_VLC([SRT], [srt], [srt >= 1.2.0], [Secure Reliable
Transport support], [auto])

> >> diff --git a/modules/access/srt.c b/modules/access/srt.c

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list