From fb9387cb9118b21d77d5f08c770e0a38fb7160e8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 22 Aug 2004 13:00:46 +0000 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ gst/autoplug/gstspider.c | 7 +++++++ gst/gst.c | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 32286a9f3b..b5c542a687 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-08-22 Benjamin Otte + + * 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 * docs/gst/Makefile.am: Remove --ignore-fail-on-non-empty (#150331) diff --git a/gst/autoplug/gstspider.c b/gst/autoplug/gstspider.c index 0ceedf874f..79d7de6dee 100644 --- a/gst/autoplug/gstspider.c +++ b/gst/autoplug/gstspider.c @@ -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); diff --git a/gst/gst.c b/gst/gst.c index d1f9e8aafb..d9961b3dee 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -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;