GNOME Bugzilla – Bug 514305
[0.11] badly ordered arguments for gst_buffer_copy_metadata()
Last modified: 2008-02-05 18:20:18 UTC
void gst_buffer_copy_metadata (GstBuffer *dest, const GstBuffer *src, GstBufferCopyFlags flags); The first argument is dest which causes the _WRAP_METHOD() to fail (gmmproc). Language bindings expect the first argument to be the self(src) argument.
damn. And we can't change that now. Moving for 0.11.
You could deprecate and add a new function at the appropriate time.
I think I'm missing something - I don't see how the second argument is somehow a 'self' reference here. It's more like newBuffer.init_from (src, flags), where 'dest' is the self pointer, and the arguments make sense in the order they're in.
What thaytan says! It does not matter in the end.
Also, it has the same semantics as memcpy, which makes it somewhat more intuitive IMHO.