GNOME Bugzilla – Bug 748119
GstMetaTransformFunction returns gboolean but its retval is discarded
Last modified: 2015-04-20 07:22:22 UTC
In gstmeta.h: /** ... * Returns: %TRUE if the transform could be performed */ typedef gboolean (*GstMetaTransformFunction) (GstBuffer *transbuf, GstMeta *meta, GstBuffer *buffer, GQuark type, gpointer data); However, in gstbuffer.c: if (flags & GST_BUFFER_COPY_META) { ... if (info->transform_func) { ... info->transform_func (dest, meta, src, _gst_meta_transform_copy, ©_data); // <-- retval unused } }
More than this shouldn't be needed here. If it fails, the meta is just not copied. commit a5ab02733a614a258e0effcdeb91968f4795cb7b Author: Sebastian Dröge <sebastian@centricular.com> Date: Mon Apr 20 09:23:43 2015 +0200 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