From: Song Bing Date: Tue, 26 Apr 2016 09:01:49 +0000 (+0800) Subject: ximageutil: shouldn't implement transform if don't support it X-Git-Tag: 1.10.4~436 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11899106d0102ab29ee6176e0c4b10a2f1e3172c;p=platform%2Fupstream%2Fgst-plugins-good.git 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 --- diff --git a/sys/ximage/ximageutil.c b/sys/ximage/ximageutil.c index d1c1fd3..57c9392 100644 --- a/sys/ximage/ximageutil.c +++ b/sys/ximage/ximageutil.c @@ -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;