mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
basesrc: fix refcounting problem
This commit is contained in:
parent
44d45e0b63
commit
c4f35cb2e0
1 changed files with 1 additions and 3 deletions
|
@ -2608,9 +2608,7 @@ gst_base_src_set_allocation (GstBaseSrc * basesrc, GstBufferPool * pool,
|
|||
GstBaseSrcPrivate *priv = basesrc->priv;
|
||||
|
||||
GST_OBJECT_LOCK (basesrc);
|
||||
if ((oldpool = priv->pool)) {
|
||||
gst_object_unref (oldpool);
|
||||
}
|
||||
oldpool = priv->pool;
|
||||
priv->pool = pool;
|
||||
|
||||
priv->allocator = allocator;
|
||||
|
|
Loading…
Reference in a new issue