buffer: Check return value of meta transform function in gst_buffer_copy_into()

... by printing some debug output whenever copying a GstMeta fails.

https://bugzilla.gnome.org/show_bug.cgi?id=748119
This commit is contained in:
Sebastian Dröge 2015-04-20 09:23:43 +02:00
parent 243889a88c
commit a5ab02733a

View file

@ -498,8 +498,12 @@ gst_buffer_copy_into (GstBuffer * dest, GstBuffer * src,
copy_data.offset = offset;
copy_data.size = size;
info->transform_func (dest, meta, src,
_gst_meta_transform_copy, &copy_data);
if (!info->transform_func (dest, meta, src,
_gst_meta_transform_copy, &copy_data)) {
GST_CAT_ERROR (GST_CAT_BUFFER,
"failed to copy meta %p of API type %s", meta,
g_type_name (info->api));
}
}
}
}