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:
parent
f8b87c8a05
commit
11899106d0
@ -54,15 +54,6 @@ gst_meta_ximage_init (GstMeta * meta, gpointer params, GstBuffer * buffer)
|
|||||||
return TRUE;
|
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 *
|
const GstMetaInfo *
|
||||||
gst_meta_ximage_get_info (void)
|
gst_meta_ximage_get_info (void)
|
||||||
{
|
{
|
||||||
@ -72,7 +63,7 @@ gst_meta_ximage_get_info (void)
|
|||||||
const GstMetaInfo *meta =
|
const GstMetaInfo *meta =
|
||||||
gst_meta_register (gst_meta_ximage_api_get_type (), "GstMetaXImageSrc",
|
gst_meta_register (gst_meta_ximage_api_get_type (), "GstMetaXImageSrc",
|
||||||
sizeof (GstMetaXImage), (GstMetaInitFunction) gst_meta_ximage_init,
|
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);
|
g_once_init_leave (&meta_ximage_info, meta);
|
||||||
}
|
}
|
||||||
return meta_ximage_info;
|
return meta_ximage_info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user