From: <co...@fr...> - 2004-08-22 13:01:01
|
CVS Root: /home/cvs/gstreamer Module: gstreamer Changes by: company Date: Sun Aug 22 2004 06:00:58 PDT Log message: * 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. Modified files: . : ChangeLog gst : gst.c gst/autoplug : gstspider.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.778&r2=1.779 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gst.c.diff?r1=1.140&r2=1.141 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/autoplug/gstspider.c.diff?r1=1.48&r2=1.49 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /home/cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.778 retrieving revision 1.779 diff -u -d -r1.778 -r1.779 --- ChangeLog 18 Aug 2004 21:46:53 -0000 1.778 +++ ChangeLog 22 Aug 2004 13:00:44 -0000 1.779 @@ -1,3 +1,11 @@ +2004-08-22 Benjamin Otte <in...@pu...> + + * 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...@sc...> * docs/gst/Makefile.am: Remove --ignore-fail-on-non-empty (#150331) Index: gstspider.c RCS file: /home/cvs/gstreamer/gstreamer/gst/autoplug/gstspider.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- gstspider.c 6 Jul 2004 12:00:53 -0000 1.48 +++ gstspider.c 22 Aug 2004 13:00:45 -0000 1.49 @@ -73,6 +73,11 @@ }; /* 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, @@ -171,6 +176,8 @@ 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); Index: gst.c RCS file: /home/cvs/gstreamer/gstreamer/gst/gst.c,v retrieving revision 1.140 retrieving revision 1.141 diff -u -d -r1.140 -r1.141 --- gst.c 3 Aug 2004 12:40:47 -0000 1.140 +++ gst.c 22 Aug 2004 13:00:46 -0000 1.141 @@ -526,7 +526,7 @@ 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; |