From efe62292a3d045126654d93239fdf4cc8e48ae08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 1 Nov 2015 13:21:45 +0000 Subject: [PATCH] hls: rename plugin from fragmented to hls --- Makefile.am | 1 + .../{plugin-fragmented.xml => plugin-hls.xml} | 10 +++++----- ext/hls/Makefile.am | 16 ++++++++-------- ext/hls/gstfragmented.h | 12 ------------ ext/hls/gsthls.h | 12 ++++++++++++ ext/hls/gsthlsdemux.h | 2 +- .../{gstfragmentedplugin.c => gsthlsplugin.c} | 14 +++++++------- ext/hls/gstm3u8playlist.c | 4 ++-- ext/hls/m3u8.c | 4 ++-- gst-plugins-bad.spec.in | 2 +- tests/check/elements/hlsdemux_m3u8.c | 5 ++--- 11 files changed, 41 insertions(+), 41 deletions(-) rename docs/plugins/inspect/{plugin-fragmented.xml => plugin-hls.xml} (84%) delete mode 100644 ext/hls/gstfragmented.h create mode 100644 ext/hls/gsthls.h rename ext/hls/{gstfragmentedplugin.c => gsthlsplugin.c} (56%) diff --git a/Makefile.am b/Makefile.am index 09615b9baf..6f7bcbf040 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,6 +53,7 @@ CRUFT_FILES = \ $(top_builddir)/common/shave \ $(top_builddir)/common/shave-libtool \ $(top_builddir)/ext/alsaspdif/.libs/*.{so,dll,DLL,dylib} \ + $(top_builddir)/ext/hls/.libs/libgstfragmented* \ $(top_builddir)/ext/ivorbis/.libs/*.{so,dll,DLL,dylib} \ $(top_builddir)/ext/jack/.libs/*.{so,dll,DLL,dylib} \ $(top_builddir)/gst/aacparse/.libs/*.{so,dll,DLL,dylib} \ diff --git a/docs/plugins/inspect/plugin-fragmented.xml b/docs/plugins/inspect/plugin-hls.xml similarity index 84% rename from docs/plugins/inspect/plugin-fragmented.xml rename to docs/plugins/inspect/plugin-hls.xml index e5e847a3fc..acbb5f28d9 100644 --- a/docs/plugins/inspect/plugin-fragmented.xml +++ b/docs/plugins/inspect/plugin-hls.xml @@ -1,13 +1,13 @@ - fragmented - Fragmented streaming plugins - ../../ext/hls/.libs/libgstfragmented.so - libgstfragmented.so + hls + HTTP Live Streaming (HLS) + ../../ext/hls/.libs/libgsthls.so + libgsthls.so 1.7.0.1 LGPL gst-plugins-bad GStreamer Bad Plug-ins - http://www.gstreamer.org/ + Unknown package origin hlsdemux diff --git a/ext/hls/Makefile.am b/ext/hls/Makefile.am index 2c287c70e0..f1632028da 100644 --- a/ext/hls/Makefile.am +++ b/ext/hls/Makefile.am @@ -1,25 +1,25 @@ -plugin_LTLIBRARIES = libgstfragmented.la +plugin_LTLIBRARIES = libgsthls.la -libgstfragmented_la_SOURCES = \ +libgsthls_la_SOURCES = \ m3u8.c \ gsthlsdemux.c \ - gstfragmentedplugin.c \ + gsthlsplugin.c \ gsthlssink.c \ gstm3u8playlist.c -libgstfragmented_la_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(LIBGCRYPT_CFLAGS) $(NETTLE_CFLAGS) -libgstfragmented_la_LIBADD = \ +libgsthls_la_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(LIBGCRYPT_CFLAGS) $(NETTLE_CFLAGS) +libgsthls_la_LIBADD = \ $(top_builddir)/gst-libs/gst/uridownloader/libgsturidownloader-@GST_API_VERSION@.la \ $(top_builddir)/gst-libs/gst/adaptivedemux/libgstadaptivedemux-@GST_API_VERSION@.la \ $(GST_PLUGINS_BASE_LIBS) -lgstpbutils-$(GST_API_VERSION) -lgstvideo-$(GST_API_VERSION) \ $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(LIBGCRYPT_LIBS) $(NETTLE_LIBS) $(OPENSSL_LIBS) -libgstfragmented_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -no-undefined -libgstfragmented_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS) +libgsthls_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -no-undefined +libgsthls_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS) # headers we need but don't want installed noinst_HEADERS = \ - gstfragmented.h \ + gsthls.h \ gsthlsdemux.h \ gsthlssink.h \ gstm3u8playlist.h \ diff --git a/ext/hls/gstfragmented.h b/ext/hls/gstfragmented.h deleted file mode 100644 index 46656aca3b..0000000000 --- a/ext/hls/gstfragmented.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef __GST_FRAGMENTED_H__ -#define __GST_FRAGMENTED_H__ - -#include - -G_BEGIN_DECLS - -GST_DEBUG_CATEGORY_EXTERN (fragmented_debug); - -G_END_DECLS - -#endif /* __GST_FRAGMENTED_H__ */ diff --git a/ext/hls/gsthls.h b/ext/hls/gsthls.h new file mode 100644 index 0000000000..3806f4f216 --- /dev/null +++ b/ext/hls/gsthls.h @@ -0,0 +1,12 @@ +#ifndef __GST_HLS_H__ +#define __GST_HLS_H__ + +#include + +G_BEGIN_DECLS + +GST_DEBUG_CATEGORY_EXTERN (hls_debug); + +G_END_DECLS + +#endif /* __GST_HLS_H__ */ diff --git a/ext/hls/gsthlsdemux.h b/ext/hls/gsthlsdemux.h index daa3670cef..1154236f6e 100644 --- a/ext/hls/gsthlsdemux.h +++ b/ext/hls/gsthlsdemux.h @@ -26,7 +26,7 @@ #include #include "m3u8.h" -#include "gstfragmented.h" +#include "gsthls.h" #include #if defined(HAVE_OPENSSL) #include diff --git a/ext/hls/gstfragmentedplugin.c b/ext/hls/gsthlsplugin.c similarity index 56% rename from ext/hls/gstfragmentedplugin.c rename to ext/hls/gsthlsplugin.c index 89a77412ad..552f514deb 100644 --- a/ext/hls/gstfragmentedplugin.c +++ b/ext/hls/gsthlsplugin.c @@ -4,16 +4,16 @@ #include -#include "gstfragmented.h" +#include "gsthls.h" #include "gsthlsdemux.h" #include "gsthlssink.h" -GST_DEBUG_CATEGORY (fragmented_debug); +GST_DEBUG_CATEGORY (hls_debug); static gboolean -fragmented_init (GstPlugin * plugin) +hls_init (GstPlugin * plugin) { - GST_DEBUG_CATEGORY_INIT (fragmented_debug, "fragmented", 0, "fragmented"); + GST_DEBUG_CATEGORY_INIT (hls_debug, "hls", 0, "HTTP Live Streaming (HLS)"); if (!gst_element_register (plugin, "hlsdemux", GST_RANK_PRIMARY, GST_TYPE_HLS_DEMUX) || FALSE) @@ -27,6 +27,6 @@ fragmented_init (GstPlugin * plugin) GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, - fragmented, - "Fragmented streaming plugins", - fragmented_init, VERSION, "LGPL", PACKAGE_NAME, "http://www.gstreamer.org/") + hls, + "HTTP Live Streaming (HLS)", + hls_init, VERSION, GST_LICENSE, PACKAGE_NAME, GST_PACKAGE_ORIGIN) diff --git a/ext/hls/gstm3u8playlist.c b/ext/hls/gstm3u8playlist.c index e3eae94ed3..c6007020bc 100644 --- a/ext/hls/gstm3u8playlist.c +++ b/ext/hls/gstm3u8playlist.c @@ -21,10 +21,10 @@ #include -#include "gstfragmented.h" +#include "gsthls.h" #include "gstm3u8playlist.h" -#define GST_CAT_DEFAULT fragmented_debug +#define GST_CAT_DEFAULT hls_debug enum { diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index d1fa8a312c..f161315c79 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -25,10 +25,10 @@ #include #include -#include "gstfragmented.h" +#include "gsthls.h" #include "m3u8.h" -#define GST_CAT_DEFAULT fragmented_debug +#define GST_CAT_DEFAULT hls_debug static GstM3U8 *gst_m3u8_new (void); static void gst_m3u8_free (GstM3U8 * m3u8); diff --git a/gst-plugins-bad.spec.in b/gst-plugins-bad.spec.in index 907c632a50..0e717bb4fe 100644 --- a/gst-plugins-bad.spec.in +++ b/gst-plugins-bad.spec.in @@ -231,7 +231,7 @@ make ERROR_CFLAGS='' ERROR_CXXFLAGS='' %{_libdir}/gstreamer-%{majorminor}/libgstsiren.so %{_libdir}/gstreamer-%{majorminor}/libgstdvbsuboverlay.so -%{_libdir}/gstreamer-%{majorminor}/libgstfragmented.so +%{_libdir}/gstreamer-%{majorminor}/libgsthls.so %{_libdir}/gstreamer-%{majorminor}/libgstvideoparsersbad.so %{_libdir}/gstreamer-%{majorminor}/libgsty4mdec.so %{_libdir}/gstreamer-%{majorminor}/libgstaudiovisualizers.so diff --git a/tests/check/elements/hlsdemux_m3u8.c b/tests/check/elements/hlsdemux_m3u8.c index b122921dc6..c64640cb76 100644 --- a/tests/check/elements/hlsdemux_m3u8.c +++ b/tests/check/elements/hlsdemux_m3u8.c @@ -30,7 +30,7 @@ #include "m3u8.h" #include "m3u8.c" -GST_DEBUG_CATEGORY (fragmented_debug); +GST_DEBUG_CATEGORY (hls_debug); static const gchar *INVALID_PLAYLIST = "#EXTM3 UINVALID"; @@ -1328,8 +1328,7 @@ hlsdemux_suite (void) Suite *s = suite_create ("hlsdemux_m3u8"); TCase *tc_m3u8 = tcase_create ("m3u8client"); - GST_DEBUG_CATEGORY_INIT (fragmented_debug, "hlsdemux_m3u", 0, - "hlsdemux m3u test"); + GST_DEBUG_CATEGORY_INIT (hls_debug, "hlsdemux_m3u", 0, "hlsdemux m3u test"); suite_add_tcase (s, tc_m3u8); tcase_add_test (tc_m3u8, test_load_main_playlist_invalid);