mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
vaapivideobufferpool: fix leak of created allocator
Since it's created by itself, it should be unref-counted after gst_buffer_pool_config_set_allocator call. Afterwards, this allocator will be ref-counted again when assigning to priv->allocator. https://bugzilla.gnome.org/show_bug.cgi?id=781577
This commit is contained in:
parent
158b44fc1e
commit
cce5ce4a9d
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool,
|
||||||
allocator = gst_vaapi_video_allocator_new (priv->display, &new_vip,
|
allocator = gst_vaapi_video_allocator_new (priv->display, &new_vip,
|
||||||
surface_alloc_flags, 0);
|
surface_alloc_flags, 0);
|
||||||
gst_buffer_pool_config_set_allocator (config, allocator, NULL);
|
gst_buffer_pool_config_set_allocator (config, allocator, NULL);
|
||||||
|
gst_object_unref (allocator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue