bufferlist: avoid reading past the array
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 23 Nov 2011 16:38:24 +0000 (17:38 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 23 Nov 2011 17:05:00 +0000 (18:05 +0100)
commit03cdd32b33d2c79add7c96bc19a7620d5a5ad611
tree38d94088b3b039e124f3600aadd03f8848b8fee8
parente694f5e71cfae1b5d2a6cc925a0c4732cb284343
bufferlist: avoid reading past the array

When the foreach function told us to remove the buffer from the list, decrease
the length of the array or else we might read past the last item in the array.
gst/gstbufferlist.c