mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-01 20:30:41 +00:00
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:
parent
7322a3c940
commit
a1b9526640
|
@ -711,6 +711,11 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -211,9 +211,9 @@ gst_spider_identity_chain (GstPad *pad, GstBuffer *buf)
|
||||||
GstSpiderIdentity*
|
GstSpiderIdentity*
|
||||||
gst_spider_identity_new_src (gchar *name)
|
gst_spider_identity_new_src (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 */
|
/* set the right functions */
|
||||||
gst_element_set_loop_function (GST_ELEMENT (ret), (GstElementLoopFunction) GST_DEBUG_FUNCPTR (gst_spider_identity_src_loop));
|
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*
|
GstSpiderIdentity*
|
||||||
gst_spider_identity_new_sink (gchar *name)
|
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 */
|
/* set the right functions */
|
||||||
gst_element_set_loop_function (GST_ELEMENT (ret), (GstElementLoopFunction) GST_DEBUG_FUNCPTR (gst_spider_identity_dumb_loop));
|
gst_element_set_loop_function (GST_ELEMENT (ret), (GstElementLoopFunction) GST_DEBUG_FUNCPTR (gst_spider_identity_dumb_loop));
|
||||||
|
|
Loading…
Reference in a new issue