mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
243889a88c
commit
a5ab02733a
1 changed files with 6 additions and 2 deletions
|
@ -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, ©_data);
|
||||
if (!info->transform_func (dest, meta, src,
|
||||
_gst_meta_transform_copy, ©_data)) {
|
||||
GST_CAT_ERROR (GST_CAT_BUFFER,
|
||||
"failed to copy meta %p of API type %s", meta,
|
||||
g_type_name (info->api));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue