hls: rename plugin from fragmented to hls
authorTim-Philipp Müller <tim@centricular.com>
Sun, 1 Nov 2015 13:21:45 +0000 (13:21 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 1 Dec 2015 17:51:34 +0000 (17:51 +0000)
Makefile.am
docs/plugins/inspect/plugin-hls.xml [moved from docs/plugins/inspect/plugin-fragmented.xml with 84% similarity]
ext/hls/Makefile.am
ext/hls/gstfragmented.h [deleted file]
ext/hls/gsthls.h [new file with mode: 0644]
ext/hls/gsthlsdemux.h
ext/hls/gsthlsplugin.c [moved from ext/hls/gstfragmentedplugin.c with 56% similarity]
ext/hls/gstm3u8playlist.c
ext/hls/m3u8.c
gst-plugins-bad.spec.in
tests/check/elements/hlsdemux_m3u8.c

index 09615b9..6f7bcbf 100644 (file)
@@ -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} \
similarity index 84%
rename from docs/plugins/inspect/plugin-fragmented.xml
rename to docs/plugins/inspect/plugin-hls.xml
index e5e847a..acbb5f2 100644 (file)
@@ -1,13 +1,13 @@
 <plugin>
-  <name>fragmented</name>
-  <description>Fragmented streaming plugins</description>
-  <filename>../../ext/hls/.libs/libgstfragmented.so</filename>
-  <basename>libgstfragmented.so</basename>
+  <name>hls</name>
+  <description>HTTP Live Streaming (HLS)</description>
+  <filename>../../ext/hls/.libs/libgsthls.so</filename>
+  <basename>libgsthls.so</basename>
   <version>1.7.0.1</version>
   <license>LGPL</license>
   <source>gst-plugins-bad</source>
   <package>GStreamer Bad Plug-ins</package>
-  <origin>http://www.gstreamer.org/</origin>
+  <origin>Unknown package origin</origin>
   <elements>
     <element>
       <name>hlsdemux</name>
index 2c287c7..f163202 100644 (file)
@@ -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 (file)
index 46656ac..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef __GST_FRAGMENTED_H__
-#define __GST_FRAGMENTED_H__
-
-#include <gst/gst.h>
-
-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 (file)
index 0000000..3806f4f
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef __GST_HLS_H__
+#define __GST_HLS_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+GST_DEBUG_CATEGORY_EXTERN (hls_debug);
+
+G_END_DECLS
+
+#endif /* __GST_HLS_H__ */
index daa3670..1154236 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <gst/gst.h>
 #include "m3u8.h"
-#include "gstfragmented.h"
+#include "gsthls.h"
 #include <gst/adaptivedemux/gstadaptivedemux.h>
 #if defined(HAVE_OPENSSL)
 #include <openssl/evp.h>
similarity index 56%
rename from ext/hls/gstfragmentedplugin.c
rename to ext/hls/gsthlsplugin.c
index 89a7741..552f514 100644 (file)
@@ -4,16 +4,16 @@
 
 #include <gst/gst.h>
 
-#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)
index e3eae94..c600702 100644 (file)
 
 #include <glib.h>
 
-#include "gstfragmented.h"
+#include "gsthls.h"
 #include "gstm3u8playlist.h"
 
-#define GST_CAT_DEFAULT fragmented_debug
+#define GST_CAT_DEFAULT hls_debug
 
 enum
 {
index d1fa8a3..f161315 100644 (file)
 #include <glib.h>
 #include <string.h>
 
-#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);
index 907c632..0e717bb 100644 (file)
@@ -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
index b122921..c64640c 100644 (file)
@@ -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);