diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2015-01-07 17:55:14 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2015-01-08 23:55:28 -0500 |
commit | e47a5708f007753a0ef46757b6b547dfb1f6f174 (patch) | |
tree | f8018c81f895e4808bd957cac029fd36dc2dbd37 | |
parent | bbcfd594e487cf2036644741600f0963fa4e8228 (diff) |
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
-rw-r--r-- | sys/v4l2/gstv4l2bufferpool.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index dfcb5d0bd..44197f19d 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -1352,12 +1352,6 @@ static void gst_v4l2_buffer_pool_dispose (GObject * 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) gst_object_unref (pool->vallocator); |