mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
I forgot some other letters, but I also forgot which ones.
Original commit message from CVS: I forgot some other letters, but I also forgot which ones.
This commit is contained in:
parent
1b17a001ea
commit
59e0556a90
1 changed files with 25 additions and 20 deletions
|
@ -26,11 +26,8 @@
|
||||||
static GstElementDetails icecastsend_details = {
|
static GstElementDetails icecastsend_details = {
|
||||||
"An Icecast plugin",
|
"An Icecast plugin",
|
||||||
"Sink/Network",
|
"Sink/Network",
|
||||||
"GPL",
|
|
||||||
"Sends data to an icecast server using libshout",
|
"Sends data to an icecast server using libshout",
|
||||||
VERSION,
|
"Wim Taymans <wim.taymans@chello.be>"
|
||||||
"Wim Taymans <wim.taymans@chello.be>",
|
|
||||||
"(C) 2000",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *SHOUT_ERRORS[] = {
|
static char *SHOUT_ERRORS[] = {
|
||||||
|
@ -90,6 +87,7 @@ sink_template_factory (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gst_icecastsend_class_init (GstIcecastSendClass *klass);
|
static void gst_icecastsend_class_init (GstIcecastSendClass *klass);
|
||||||
|
static void gst_icecastsend_base_init (GstIcecastSendClass *klass);
|
||||||
static void gst_icecastsend_init (GstIcecastSend *icecastsend);
|
static void gst_icecastsend_init (GstIcecastSend *icecastsend);
|
||||||
|
|
||||||
static void gst_icecastsend_chain (GstPad *pad, GstData *_data);
|
static void gst_icecastsend_chain (GstPad *pad, GstData *_data);
|
||||||
|
@ -110,7 +108,8 @@ gst_icecastsend_get_type (void)
|
||||||
|
|
||||||
if (!icecastsend_type) {
|
if (!icecastsend_type) {
|
||||||
static const GTypeInfo icecastsend_info = {
|
static const GTypeInfo icecastsend_info = {
|
||||||
sizeof (GstIcecastSendClass), NULL, NULL,
|
sizeof (GstIcecastSendClass),
|
||||||
|
(GBaseInitFunc gst_icecastsend_base_init, NULL,
|
||||||
(GClassInitFunc) gst_icecastsend_class_init, NULL, NULL,
|
(GClassInitFunc) gst_icecastsend_class_init, NULL, NULL,
|
||||||
sizeof (GstIcecastSend), 0,
|
sizeof (GstIcecastSend), 0,
|
||||||
(GInstanceInitFunc) gst_icecastsend_init,
|
(GInstanceInitFunc) gst_icecastsend_init,
|
||||||
|
@ -120,6 +119,15 @@ gst_icecastsend_get_type (void)
|
||||||
return icecastsend_type;
|
return icecastsend_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_icecastsend_base_init (GstIcecastSendClass *klass)
|
||||||
|
{
|
||||||
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
|
||||||
|
gst_element_class_add_pad_template (element_class, sink_template_factory());
|
||||||
|
gst_element_class_set_details (element_class, &icecastsend_details);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_icecastsend_class_init (GstIcecastSendClass *klass)
|
gst_icecastsend_class_init (GstIcecastSendClass *klass)
|
||||||
{
|
{
|
||||||
|
@ -451,24 +459,21 @@ gst_icecastsend_change_state (GstElement *element)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GModule *module, GstPlugin *plugin)
|
plugin_init (GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
return gst_element_register (plugin, "icecastsend",
|
||||||
|
GST_RANK_NONE, GST_TYPE_ICECASTSEND);
|
||||||
factory = gst_element_factory_new("icecastsend", GST_TYPE_ICECASTSEND, &icecastsend_details);
|
|
||||||
g_return_val_if_fail(factory != NULL, FALSE);
|
|
||||||
|
|
||||||
gst_element_factory_add_pad_template (factory, sink_template_factory ());
|
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GstPluginDesc plugin_desc = {
|
GST_PLUGIN_DEFINE (
|
||||||
GST_VERSION_MAJOR,
|
GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"icecastsend",
|
"icecastsend",
|
||||||
plugin_init
|
"Sends data to an icecast server using libshout",
|
||||||
};
|
plugin_init,
|
||||||
|
VERSION,
|
||||||
|
"GPL",
|
||||||
|
GST_COPYRIGHT,
|
||||||
|
"libshout",
|
||||||
|
"http://developer.icecast.org/libshout/"
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue