mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
kmsbufferpool: Don't check allocator pointer twice
https://bugzilla.gnome.org/show_bug.cgi?id=787593
This commit is contained in:
parent
0a25ca893d
commit
119294f3fc
1 changed files with 1 additions and 2 deletions
|
@ -87,8 +87,7 @@ gst_kms_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
if (allocator && GST_IS_KMS_ALLOCATOR (allocator)) {
|
||||
if (priv->allocator)
|
||||
gst_object_unref (priv->allocator);
|
||||
if ((priv->allocator = allocator))
|
||||
gst_object_ref (allocator);
|
||||
priv->allocator = gst_object_ref (allocator);
|
||||
}
|
||||
if (!priv->allocator)
|
||||
goto no_allocator;
|
||||
|
|
Loading…
Reference in a new issue