mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
gst/autoplug/gstspider.c: add a template for spider's sink
Original commit message from CVS: * gst/autoplug/gstspider.c: (gst_spider_class_init), (gst_spider_identity_plug): add a template for spider's sink * gst/gst.c: (gst_register_core_elements): queue's rank should be NULL, we don't want spider to add it.
This commit is contained in:
parent
aa6049eb61
commit
fb9387cb91
3 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-08-22 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* gst/autoplug/gstspider.c: (gst_spider_class_init),
|
||||
(gst_spider_identity_plug):
|
||||
add a template for spider's sink
|
||||
* gst/gst.c: (gst_register_core_elements):
|
||||
queue's rank should be NULL, we don't want spider to add it.
|
||||
|
||||
2004-08-18 David Schleef <ds@schleef.org>
|
||||
|
||||
* docs/gst/Makefile.am: Remove --ignore-fail-on-non-empty (#150331)
|
||||
|
|
|
@ -73,6 +73,11 @@ enum
|
|||
};
|
||||
|
||||
/* generic templates */
|
||||
static GstStaticPadTemplate spider_sink_factory =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS_ANY);
|
||||
static GstStaticPadTemplate spider_src_factory =
|
||||
GST_STATIC_PAD_TEMPLATE ("src_%d",
|
||||
GST_PAD_SRC,
|
||||
|
@ -170,6 +175,8 @@ gst_spider_class_init (GstSpiderClass * klass)
|
|||
gobject_class->get_property = gst_spider_get_property;
|
||||
gobject_class->dispose = gst_spider_dispose;
|
||||
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&spider_sink_factory));
|
||||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&spider_src_factory));
|
||||
gst_element_class_set_details (gstelement_class, &gst_spider_details);
|
||||
|
|
|
@ -526,7 +526,7 @@ gst_register_core_elements (GstPlugin * plugin)
|
|||
GST_TYPE_PIPELINE) ||
|
||||
!gst_element_register (plugin, "thread", GST_RANK_PRIMARY,
|
||||
GST_TYPE_THREAD) ||
|
||||
!gst_element_register (plugin, "queue", GST_RANK_PRIMARY, GST_TYPE_QUEUE))
|
||||
!gst_element_register (plugin, "queue", GST_RANK_NONE, GST_TYPE_QUEUE))
|
||||
g_assert_not_reached ();
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue