summaryrefslogtreecommitdiff
path: root/gst/gsttask.c
diff options
context:
space:
mode:
authorBrendan Long <b.long@cablelabs.com>2013-10-30 17:02:35 -0500
committerSebastian Dröge <sebastian@centricular.com>2014-02-06 22:50:53 +0100
commitf85c1c46488abf2814c8ce51a892a4f5f9ab8b98 (patch)
tree6446b769e33ec83eb285f216419f0cfdc22a94f0 /gst/gsttask.c
parentf6054722309c3702fbe40ccbf009b8f2cb37e4e2 (diff)
downloadgstreamer-f85c1c46488abf2814c8ce51a892a4f5f9ab8b98.tar.gz
gst: clear floating references for GstTask, GstTaskPool and GstCollectPads
https://bugzilla.gnome.org/show_bug.cgi?id=710342
Diffstat (limited to 'gst/gsttask.c')
-rw-r--r--gst/gsttask.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/gsttask.c b/gst/gsttask.c
index 993eb7094e..cf1decf043 100644
--- a/gst/gsttask.c
+++ b/gst/gsttask.c
@@ -197,6 +197,9 @@ gst_task_init (GstTask * task)
g_mutex_lock (&pool_lock);
task->priv->pool = gst_object_ref (klass->pool);
g_mutex_unlock (&pool_lock);
+
+ /* clear floating flag */
+ gst_object_ref_sink (task);
}
static void