summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2019-12-05 09:47:38 +0100
committerMathieu Duponchelle <mathieu@centricular.com>2019-12-05 10:45:49 +0100
commit5c47fe611894ebfd8da946797802913042eff3bf (patch)
tree59ed91acd31f4ee0f74124f24958108cb30ff5fb
parent3c21d6a29f42731b5f47561a07f251ce8f875c5a (diff)
downloadgstreamer-5c47fe611894ebfd8da946797802913042eff3bf.tar.gz
Revert "element: Enforce that elements created by gst_element_factory_create/make() are floating"
See https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/333 The reference we receive when calling g_object_new should be floating, but we can't force it at our level. This reverts commit ce43de86902c4e9c8ed4e9682602664cb9bce2ee.
-rw-r--r--gst/gstelementfactory.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c
index 3ccfc1420a..cf3b100774 100644
--- a/gst/gstelementfactory.c
+++ b/gst/gstelementfactory.c
@@ -386,12 +386,6 @@ gst_element_factory_create (GstElementFactory * factory, const gchar * name)
/* This ref will never be dropped as the class is never destroyed */
GST_OBJECT_FLAG_SET (factory, GST_OBJECT_FLAG_MAY_BE_LEAKED);
- /* Ensure that the reference is floating. Bindings might have a hard time
- * making sure that the reference is indeed still floating after returning
- * here */
- if (element)
- g_object_force_floating ((GObject *) element);
-
GST_DEBUG ("created element \"%s\"", GST_OBJECT_NAME (factory));
return element;