mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
gst: clear floating references for GstTask, GstTaskPool and GstCollectPads
https://bugzilla.gnome.org/show_bug.cgi?id=710342
This commit is contained in:
parent
f605472230
commit
f85c1c4648
3 changed files with 8 additions and 0 deletions
|
@ -197,6 +197,9 @@ gst_task_init (GstTask * task)
|
||||||
g_mutex_lock (&pool_lock);
|
g_mutex_lock (&pool_lock);
|
||||||
task->priv->pool = gst_object_ref (klass->pool);
|
task->priv->pool = gst_object_ref (klass->pool);
|
||||||
g_mutex_unlock (&pool_lock);
|
g_mutex_unlock (&pool_lock);
|
||||||
|
|
||||||
|
/* clear floating flag */
|
||||||
|
gst_object_ref_sink (task);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -141,6 +141,8 @@ gst_task_pool_class_init (GstTaskPoolClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_task_pool_init (GstTaskPool * pool)
|
gst_task_pool_init (GstTaskPool * pool)
|
||||||
{
|
{
|
||||||
|
/* clear floating flag */
|
||||||
|
gst_object_ref_sink (pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
|
|
|
@ -265,6 +265,9 @@ gst_collect_pads_init (GstCollectPads * pads)
|
||||||
pads->priv->seeking = FALSE;
|
pads->priv->seeking = FALSE;
|
||||||
pads->priv->pending_flush_start = FALSE;
|
pads->priv->pending_flush_start = FALSE;
|
||||||
pads->priv->pending_flush_stop = FALSE;
|
pads->priv->pending_flush_stop = FALSE;
|
||||||
|
|
||||||
|
/* clear floating flag */
|
||||||
|
gst_object_ref_sink (pads);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue