Uraeus bought the rights to this patch it makes spideridentity be a real element and thus show up in the editor

Original commit message from CVS:
Uraeus bought the rights to this patch
it makes spideridentity be a real element and thus show up in the editor
This commit is contained in:
Thomas Vander Stichele 2002-09-12 18:49:22 +00:00
parent 7322a3c940
commit a1b9526640
2 changed files with 11 additions and 5 deletions

View file

@ -711,6 +711,11 @@ plugin_init (GModule *module, GstPlugin *plugin)
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
/* add spideridentity */
factory = gst_element_factory_new ("spideridentity", GST_TYPE_SPIDER_IDENTITY,
&gst_spider_identity_details);
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
return TRUE;
}

View file

@ -211,9 +211,9 @@ gst_spider_identity_chain (GstPad *pad, GstBuffer *buf)
GstSpiderIdentity*
gst_spider_identity_new_src (gchar *name)
{
GstSpiderIdentity *ret = (GstSpiderIdentity *) g_object_new (gst_spider_identity_get_type (), NULL);
GST_ELEMENT_NAME (ret) = name;
//GstSpiderIdentity *ret = (GstSpiderIdentity *) g_object_new (gst_spider_identity_get_type (), NULL);
//GST_ELEMENT_NAME (ret) = name;
GstSpiderIdentity *ret = (GstSpiderIdentity *) gst_element_factory_make ("spideridentity", name);
/* set the right functions */
gst_element_set_loop_function (GST_ELEMENT (ret), (GstElementLoopFunction) GST_DEBUG_FUNCPTR (gst_spider_identity_src_loop));
@ -222,9 +222,10 @@ gst_spider_identity_new_src (gchar *name)
GstSpiderIdentity*
gst_spider_identity_new_sink (gchar *name)
{
GstSpiderIdentity *ret = (GstSpiderIdentity *) g_object_new (gst_spider_identity_get_type (), NULL);
//GstSpiderIdentity *ret = (GstSpiderIdentity *) g_object_new (gst_spider_identity_get_type (), NULL);
GST_ELEMENT_NAME (ret) = name;
//GST_ELEMENT_NAME (ret) = name;
GstSpiderIdentity *ret = (GstSpiderIdentity *) gst_element_factory_make ("spideridentity", name);
/* set the right functions */
gst_element_set_loop_function (GST_ELEMENT (ret), (GstElementLoopFunction) GST_DEBUG_FUNCPTR (gst_spider_identity_dumb_loop));