From dda3219e4c052de45a987a41674e78e960b20c8b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 28 Feb 2012 11:38:59 +0100 Subject: [PATCH] update for metadata tags --- sys/v4l2/gstv4l2bufferpool.c | 3 ++- sys/ximage/ximageutil.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 10f29336ed..6c77cec422 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -61,12 +61,13 @@ const GstMetaInfo * gst_v4l2_meta_get_info (void) { static const GstMetaInfo *meta_info = NULL; + static const gchar *tags[] = { "memory" }; if (meta_info == NULL) { meta_info = gst_meta_register ("GstV4l2Meta", "GstV4l2Meta", sizeof (GstV4l2Meta), (GstMetaInitFunction) NULL, - (GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL); + (GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL, tags); } return meta_info; } diff --git a/sys/ximage/ximageutil.c b/sys/ximage/ximageutil.c index 47d6d48570..84cc01a5ae 100644 --- a/sys/ximage/ximageutil.c +++ b/sys/ximage/ximageutil.c @@ -27,12 +27,13 @@ const GstMetaInfo * gst_meta_ximage_get_info (void) { static const GstMetaInfo *meta_ximage_info = NULL; + static const gchar *tags[] = { "memory", NULL }; if (meta_ximage_info == NULL) { meta_ximage_info = gst_meta_register ("GstMetaXImageSrc", "GstMetaXImageSrc", sizeof (GstMetaXImage), (GstMetaInitFunction) NULL, - (GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL); + (GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL, tags); } return meta_ximage_info; }