queue2: fix leak and improve buffering
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 14 Jul 2009 15:03:35 +0000 (17:03 +0200)
committerWim Taymans <wim@metal.(none)>
Wed, 15 Jul 2009 18:56:10 +0000 (20:56 +0200)
commit3886a83f0e846940c4561b1f09b06ddf0260adc7
tree372340582aa468b3b7d5886ce20e7ed531e1fc11
parent5366b61bfc305eae504e8ea6a0df3201e563f68f
queue2: fix leak and improve buffering

Keep track of the max requested position and compare this to the write position
in the temp file to get the current amount of buffered data.
Fix memleak of all incomming buffers.

Fixes #588551
gst/playback/gstqueue2.c