ximageutil: shouldn't implement transform if don't support it

shouldn't implement transform if don't support it. Or gst_buffer_copy_into()
will print ERROR log.

https://bugzilla.gnome.org/show_bug.cgi?id=765583
This commit is contained in:
Song Bing 2016-04-26 17:01:49 +08:00 committed by Sebastian Dröge
parent f8b87c8a05
commit 11899106d0

View file

@ -54,15 +54,6 @@ gst_meta_ximage_init (GstMeta * meta, gpointer params, GstBuffer * buffer)
return TRUE;
}
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)
{
@ -72,7 +63,7 @@ gst_meta_ximage_get_info (void)
const GstMetaInfo *meta =
gst_meta_register (gst_meta_ximage_api_get_type (), "GstMetaXImageSrc",
sizeof (GstMetaXImage), (GstMetaInitFunction) gst_meta_ximage_init,
(GstMetaFreeFunction) NULL, gst_meta_ximage_transform);
(GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL);
g_once_init_leave (&meta_ximage_info, meta);
}
return meta_ximage_info;