bufferpool: only release buffers with writable memory
authorWim Taymans <wtaymans@redhat.com>
Thu, 27 Feb 2014 15:40:34 +0000 (16:40 +0100)
committerWim Taymans <wtaymans@redhat.com>
Thu, 27 Feb 2014 15:40:34 +0000 (16:40 +0100)
commit7691150c45f7502e21f65a3bf400960a028b371e
tree37d16af3788e96e246ac06a6d3e169428a221a3e
parent659785d896914f5e659af5ea2f24efe56ed36099
bufferpool: only release buffers with writable memory

Check if the memory is writable before releasing the buffer into the
pool again.
Add unit test for this scenario.
gst/gstbufferpool.c
tests/check/gst/gstbufferpool.c