mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
v4l2bufferpool: Don't clean buffer array in dispose
This should already have been done, plus this code is incorrect and may lead to crash. https://bugzilla.gnome.org/show_bug.cgi?id=742074
This commit is contained in:
parent
bbcfd594e4
commit
e47a5708f0
1 changed files with 0 additions and 6 deletions
|
@ -1352,12 +1352,6 @@ static void
|
||||||
gst_v4l2_buffer_pool_dispose (GObject * object)
|
gst_v4l2_buffer_pool_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
GstV4l2BufferPool *pool = GST_V4L2_BUFFER_POOL (object);
|
GstV4l2BufferPool *pool = GST_V4L2_BUFFER_POOL (object);
|
||||||
gint i;
|
|
||||||
|
|
||||||
for (i = 0; i < VIDEO_MAX_FRAME; i++) {
|
|
||||||
if (pool->buffers[i])
|
|
||||||
gst_buffer_replace (&(pool->buffers[i]), NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pool->vallocator)
|
if (pool->vallocator)
|
||||||
gst_object_unref (pool->vallocator);
|
gst_object_unref (pool->vallocator);
|
||||||
|
|
Loading…
Reference in a new issue