Make the hls plugin depend on gnutls and move to ext/hls/
authorAlessandro Decina <alessandro.d@gmail.com>
Tue, 19 Mar 2013 09:47:25 +0000 (10:47 +0100)
committerAlessandro Decina <alessandro.d@gmail.com>
Tue, 19 Mar 2013 09:54:18 +0000 (10:54 +0100)
gnutls is used to implement AES decryption

18 files changed:
Makefile.am
configure.ac
ext/Makefile.am
ext/hls/Makefile.am [moved from gst/hls/Makefile.am with 93% similarity]
ext/hls/gstfragment.c [moved from gst/hls/gstfragment.c with 100% similarity]
ext/hls/gstfragment.h [moved from gst/hls/gstfragment.h with 100% similarity]
ext/hls/gstfragmented.h [moved from gst/hls/gstfragmented.h with 100% similarity]
ext/hls/gstfragmentedplugin.c [moved from gst/hls/gstfragmentedplugin.c with 100% similarity]
ext/hls/gsthlsdemux.c [moved from gst/hls/gsthlsdemux.c with 100% similarity]
ext/hls/gsthlsdemux.h [moved from gst/hls/gsthlsdemux.h with 100% similarity]
ext/hls/gsthlssink.c [moved from gst/hls/gsthlssink.c with 100% similarity]
ext/hls/gsthlssink.h [moved from gst/hls/gsthlssink.h with 100% similarity]
ext/hls/gstm3u8playlist.c [moved from gst/hls/gstm3u8playlist.c with 100% similarity]
ext/hls/gstm3u8playlist.h [moved from gst/hls/gstm3u8playlist.h with 100% similarity]
ext/hls/gsturidownloader.c [moved from gst/hls/gsturidownloader.c with 100% similarity]
ext/hls/gsturidownloader.h [moved from gst/hls/gsturidownloader.h with 100% similarity]
ext/hls/m3u8.c [moved from gst/hls/m3u8.c with 100% similarity]
ext/hls/m3u8.h [moved from gst/hls/m3u8.h with 100% similarity]

index 63487e1..8184f22 100644 (file)
@@ -83,6 +83,7 @@ CRUFT_DIRS = \
        $(top_srcdir)/gst/aacparse \
        $(top_srcdir)/gst/amrparse \
        $(top_srcdir)/gst/flacparse \
+       $(top_srcdir)/gst/hls \
        $(top_srcdir)/gst/imagefreeze \
        $(top_srcdir)/gst/invtelecine \
        $(top_srcdir)/gst/mpeg4videoparse \
index 62cfc88..b79a335 100644 (file)
@@ -357,7 +357,6 @@ AG_GST_CHECK_PLUGIN(gaudieffects)
 AG_GST_CHECK_PLUGIN(geometrictransform)
 AG_GST_CHECK_PLUGIN(gdp)
 AG_GST_CHECK_PLUGIN(hdvparse)
-AG_GST_CHECK_PLUGIN(hls)
 AG_GST_CHECK_PLUGIN(id3tag)
 AG_GST_CHECK_PLUGIN(inter)
 AG_GST_CHECK_PLUGIN(interlace)
@@ -2124,6 +2123,12 @@ AG_GST_CHECK_FEATURE(SNDIO, [sndio audio], sndio, [
   fi
 ])
 
+dnl *** hls ***
+translit(dnm, m, l) AM_CONDITIONAL(USE_HLS, true)
+AG_GST_CHECK_FEATURE(HLS, [http live streaming plugin], hls, [
+  AG_GST_PKG_CHECK_MODULES(GNUTLS, gnutls)
+])
+
 else
 
 dnl not building plugins with external dependencies,
@@ -2303,7 +2308,6 @@ gst/gaudieffects/Makefile
 gst/geometrictransform/Makefile
 gst/gdp/Makefile
 gst/hdvparse/Makefile
-gst/hls/Makefile
 gst/id3tag/Makefile
 gst/inter/Makefile
 gst/interlace/Makefile
@@ -2413,6 +2417,7 @@ ext/faac/Makefile
 ext/faad/Makefile
 ext/flite/Makefile
 ext/gsm/Makefile
+ext/hls/Makefile
 ext/kate/Makefile
 ext/ladspa/Makefile
 ext/lv2/Makefile
index c9c5f96..57ec38e 100644 (file)
@@ -360,6 +360,12 @@ else
 RTMP_DIR =
 endif
 
+if USE_HLS
+HLS_DIR = hls
+else
+HLS_DIR =
+endif
+
 
 SUBDIRS=\
        $(VOAACENC_DIR) \
@@ -420,7 +426,8 @@ SUBDIRS=\
        $(TIMIDITY_DIR) \
        $(XVID_DIR) \
        $(ZBAR_DIR) \
-       $(RTMP_DIR)
+       $(RTMP_DIR) \
+       $(HLS_DIR)
 
 DIST_SUBDIRS = \
        assrender \
similarity index 93%
rename from gst/hls/Makefile.am
rename to ext/hls/Makefile.am
index 1a50906..7750395 100644 (file)
@@ -10,10 +10,10 @@ libgstfragmented_la_SOURCES =                       \
        gsthlssink.c                            \
        gstm3u8playlist.c
 
-libgstfragmented_la_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS)
+libgstfragmented_la_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS) $(GNUTLS_CFLAGS)
 libgstfragmented_la_LIBADD = \
        $(GST_PLUGINS_BASE_LIBS) -lgstpbutils-$(GST_API_VERSION) -lgstvideo-$(GST_API_VERSION) \
-       $(GST_BASE_LIBS) $(GST_LIBS) $(GIO_LIBS) $(LIBM)
+       $(GST_BASE_LIBS) $(GST_LIBS) $(GIO_LIBS) $(LIBM) $(GNUTLS_LIBS)
 libgstfragmented_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -no-undefined
 libgstfragmented_la_LIBTOOLFLAGS = --tag=disable-static
 
similarity index 100%
rename from gst/hls/gstfragment.c
rename to ext/hls/gstfragment.c
similarity index 100%
rename from gst/hls/gstfragment.h
rename to ext/hls/gstfragment.h
similarity index 100%
rename from gst/hls/gsthlsdemux.c
rename to ext/hls/gsthlsdemux.c
similarity index 100%
rename from gst/hls/gsthlsdemux.h
rename to ext/hls/gsthlsdemux.h
similarity index 100%
rename from gst/hls/gsthlssink.c
rename to ext/hls/gsthlssink.c
similarity index 100%
rename from gst/hls/gsthlssink.h
rename to ext/hls/gsthlssink.h
similarity index 100%
rename from gst/hls/m3u8.c
rename to ext/hls/m3u8.c
similarity index 100%
rename from gst/hls/m3u8.h
rename to ext/hls/m3u8.h