We're duplicating it with `memcpy` anyway, so `gst_buffer_new_wrapped(g_memdup(data, length), length)` should have the same effect. We could make it more efficient using [`gst_buffer_new_wrapped_full`](http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#gst-buffer-new-wrapped-full), which is also nice because we can mark it as readonly:

    outbuf = gst_buffer_new_wrapped_full(GST_MEMORY_FLAG_READONLY, data, length, 0, length, NULL, NULL);