1 #ifdef HAVE_CONFIG_H
2 #  include <config.h>
3 #endif
4 
5 #include <gst/gst.h>
6 
7 #include "gsthls.h"
8 #include "gsthlsdemux.h"
9 #include "gsthlssink.h"
10 #include "gsthlssink2.h"
11 
12 GST_DEBUG_CATEGORY (hls_debug);
13 
14 static gboolean
hls_init(GstPlugin * plugin)15 hls_init (GstPlugin * plugin)
16 {
17   GST_DEBUG_CATEGORY_INIT (hls_debug, "hls", 0, "HTTP Live Streaming (HLS)");
18 
19   if (!gst_element_register (plugin, "hlsdemux", GST_RANK_PRIMARY,
20           GST_TYPE_HLS_DEMUX) || FALSE)
21     return FALSE;
22 
23   if (!gst_hls_sink_plugin_init (plugin))
24     return FALSE;
25 
26   if (!gst_hls_sink2_plugin_init (plugin))
27     return FALSE;
28 
29   return TRUE;
30 }
31 
32 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
33     GST_VERSION_MINOR,
34     hls,
35     "HTTP Live Streaming (HLS)",
36     hls_init, VERSION, GST_LICENSE, PACKAGE_NAME, GST_PACKAGE_ORIGIN)
37