gst: Clear floating flag in constructor of all GstObject subclasses that are not...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 15 May 2017 16:51:47 +0000 (19:51 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 17 May 2017 07:41:01 +0000 (10:41 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=743062

sys/v4l2/gstv4l2allocator.c
sys/v4l2/gstv4l2bufferpool.c

index 2047383..5a5f2b8 100644 (file)
@@ -639,6 +639,7 @@ gst_v4l2_allocator_new (GstObject * parent, gint video_fd,
   g_free (parent_name);
 
   allocator = g_object_new (GST_TYPE_V4L2_ALLOCATOR, "name", name, NULL);
+  gst_object_ref_sink (allocator);
   g_free (name);
 
   /* Save everything */
index 48cda0f..8b70b98 100644 (file)
@@ -1589,6 +1589,7 @@ gst_v4l2_buffer_pool_new (GstV4l2Object * obj, GstCaps * caps)
 
   pool = (GstV4l2BufferPool *) g_object_new (GST_TYPE_V4L2_BUFFER_POOL,
       "name", name, NULL);
+  g_object_ref_sink (pool);
   g_free (name);
 
   gst_poll_fd_init (&pool->pollfd);