mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
1 changed files with 1 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue