shapewipe: Can't map twice the same buffer for writing
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 10 May 2013 02:20:28 +0000 (22:20 -0400)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 10 May 2013 07:27:02 +0000 (09:27 +0200)
commit0b737fba0d64d9a49435a88b27aac2287b035398
tree250f2cb87a1766a03f693e7838f16e96e9e4b8f7
parent13a5d0304d04e6a94b4fac21b1e249560ef43910
shapewipe: Can't map twice the same buffer for writing

I took the opportunity to simplify that code a bit. We now use
gst_buffer_make_writable() to make the buffer writable and map twice the
same buffer, with first map being read/write, and second read only. This
get rid of the critical:

GStreamer-CRITICAL **: gst_structure_set_name: assertion `IS_MUTABLE

https://bugzilla.gnome.org/show_bug.cgi?id=700044
gst/shapewipe/gstshapewipe.c