memory: add check for writablity in resize
authorPrashant Gotarne <ps.gotarne@samsung.com>
Mon, 6 Apr 2015 04:48:15 +0000 (10:18 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 6 Apr 2015 12:32:20 +0000 (13:32 +0100)
commit6a8f65936b87c240d31ad9664a45f7ef9fe882b3
tree46d929ec2f49c81ce4c2e6fdb84e14b91445fe47
parentfd67f40e4d1da9d77360e59144b1c4ce0879917b
memory: add check for writablity in resize

Add guard to gst_memory_resize() to make sure the
memory to be resized is actually writable.

https://bugzilla.gnome.org/show_bug.cgi?id=747392
gst/gstmemory.c