Uraeus bought the rights to this patch it makes spideridentity be a real element...
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 12 Sep 2002 18:49:22 +0000 (18:49 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 12 Sep 2002 18:49:22 +0000 (18:49 +0000)
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

gst/autoplug/gstspider.c
gst/autoplug/gstspideridentity.c

index e92fa32..d3a9a90 100644 (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;
 }
 
index 4a660fe..ed155fd 100644 (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));