2011-02-14 17:51:32 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2015-11-01 13:21:45 +00:00
|
|
|
#include "gsthls.h"
|
2011-02-14 17:51:32 +00:00
|
|
|
#include "gsthlsdemux.h"
|
2011-08-21 09:00:51 +00:00
|
|
|
#include "gsthlssink.h"
|
2017-04-19 12:47:57 +00:00
|
|
|
#include "gsthlssink2.h"
|
2011-02-14 17:51:32 +00:00
|
|
|
|
2015-11-01 13:21:45 +00:00
|
|
|
GST_DEBUG_CATEGORY (hls_debug);
|
2011-02-14 17:51:32 +00:00
|
|
|
|
|
|
|
static gboolean
|
2015-11-01 13:21:45 +00:00
|
|
|
hls_init (GstPlugin * plugin)
|
2011-02-14 17:51:32 +00:00
|
|
|
{
|
2015-11-01 13:21:45 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (hls_debug, "hls", 0, "HTTP Live Streaming (HLS)");
|
2011-02-14 17:51:32 +00:00
|
|
|
|
|
|
|
if (!gst_element_register (plugin, "hlsdemux", GST_RANK_PRIMARY,
|
|
|
|
GST_TYPE_HLS_DEMUX) || FALSE)
|
|
|
|
return FALSE;
|
2011-08-21 09:00:51 +00:00
|
|
|
|
|
|
|
if (!gst_hls_sink_plugin_init (plugin))
|
|
|
|
return FALSE;
|
|
|
|
|
2017-04-19 12:47:57 +00:00
|
|
|
if (!gst_hls_sink2_plugin_init (plugin))
|
|
|
|
return FALSE;
|
|
|
|
|
2011-02-14 17:51:32 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2015-11-01 13:21:45 +00:00
|
|
|
hls,
|
|
|
|
"HTTP Live Streaming (HLS)",
|
|
|
|
hls_init, VERSION, GST_LICENSE, PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|