Commit c5c7e7e0 authored by Hyunjun Ko's avatar Hyunjun Ko Committed by Sebastian Dröge
Browse files

ximagesrc: add meta transform function

ximage metadata can't be transformed or copied, but provide an empty
transformation function instead of NULL to allow unconditional calling
of metas' transform functions.
parent a675e189
......@@ -36,6 +36,15 @@ gst_meta_ximage_api_get_type (void)
return type;
static gboolean
gst_meta_ximage_transform (GstBuffer * dest, GstMeta * meta,
GstBuffer * buffer, GQuark type, gpointer data)
/* ximage metadata can't be transformed or copied */
return FALSE;
const GstMetaInfo *
gst_meta_ximage_get_info (void)
......@@ -45,7 +54,7 @@ gst_meta_ximage_get_info (void)
const GstMetaInfo *meta =
gst_meta_register (gst_meta_ximage_api_get_type (), "GstMetaXImageSrc",
sizeof (GstMetaXImage), (GstMetaInitFunction) NULL,
(GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL);
(GstMetaFreeFunction) NULL, gst_meta_ximage_transform);
g_once_init_leave (&meta_ximage_info, meta);
return meta_ximage_info;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment