summaryrefslogtreecommitdiff
path: root/gst/gsttracerrecord.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-05-15 18:58:38 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-05-17 10:40:37 +0300
commitf119e93b47efb06ffc68c01d3e094d5346c30041 (patch)
tree8034fc373612c92b47c58dcbed41617b836da015 /gst/gsttracerrecord.c
parent888fc33bc2aedb0fe6832cc104b83c22a348fd09 (diff)
gst: Clear floating flag in constructor of all GstObject subclasses that are not owned by any parent
I.e. most of them unfortunately. https://bugzilla.gnome.org/show_bug.cgi?id=743062
Diffstat (limited to 'gst/gsttracerrecord.c')
-rw-r--r--gst/gsttracerrecord.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/gsttracerrecord.c b/gst/gsttracerrecord.c
index 889479dcee..2446a6e9c6 100644
--- a/gst/gsttracerrecord.c
+++ b/gst/gsttracerrecord.c
@@ -178,7 +178,7 @@ gst_tracer_record_init (GstTracerRecord * self)
*
* > Please note that this is still under discussion and subject to change.
*
- * Returns: (transfer floating): a new #GstTracerRecord
+ * Returns: (transfer full): a new #GstTracerRecord
*/
GstTracerRecord *
gst_tracer_record_new (const gchar * name, const gchar * firstfield, ...)
@@ -219,6 +219,10 @@ gst_tracer_record_new (const gchar * name, const gchar * firstfield, ...)
va_end (varargs);
self = g_object_new (GST_TYPE_TRACER_RECORD, NULL);
+
+ /* Clear floating flag */
+ gst_object_ref_sink (self);
+
self->spec = structure;
gst_tracer_record_build_format (self);