gstbuffer: Add a note about metas needing to be copied last

This commit is contained in:
Jan Schmidt 2015-06-03 00:12:36 +10:00
parent 58e5cd2695
commit b0c072711d

View file

@ -487,6 +487,9 @@ gst_buffer_copy_into (GstBuffer * dest, GstBuffer * src,
}
if (flags & GST_BUFFER_COPY_META) {
/* NOTE: GstGLSyncMeta copying relies on the meta
* being copied now, after the buffer data,
* so this has to happen last */
for (walk = GST_BUFFER_META (src); walk; walk = walk->next) {
GstMeta *meta = &walk->meta;
const GstMetaInfo *info = meta->info;