riff: create palette_data buffer correctly
authorTim-Philipp Müller <tim@centricular.net>
Mon, 15 Oct 2012 23:55:56 +0000 (00:55 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 15 Oct 2012 23:55:56 +0000 (00:55 +0100)
commitb0d581eadc8cb21f4997ae03a88b06de6ce53e18
tree5d9fa4c79bb7a39308ed0e63ec9d5111fb7aeacd
parent162433795a5cc4979c47edf0d0df066a914fd4e3
riff: create palette_data buffer correctly

gst_buffer_copy_into() will append to any existing
memory region, so don't create a buffer and alloc
some memory, but just create an empty buffer and
let _copy_into() append the memory we want. Fixes
the palette being 2048 bytes with the first half
being filled with garbage.

https://bugzilla.gnome.org/show_bug.cgi?id=686046
gst-libs/gst/riff/riff-media.c