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:
Nicolas Dufresne 2015-01-07 17:55:14 -05:00
parent bbcfd594e4
commit e47a5708f0

View file

@ -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);