update for metadata tags

This commit is contained in:
Wim Taymans 2012-02-28 11:38:59 +01:00
parent 36e6b25e73
commit dda3219e4c
2 changed files with 4 additions and 2 deletions

View File

@ -61,12 +61,13 @@ const GstMetaInfo *
gst_v4l2_meta_get_info (void) gst_v4l2_meta_get_info (void)
{ {
static const GstMetaInfo *meta_info = NULL; static const GstMetaInfo *meta_info = NULL;
static const gchar *tags[] = { "memory" };
if (meta_info == NULL) { if (meta_info == NULL) {
meta_info = meta_info =
gst_meta_register ("GstV4l2Meta", "GstV4l2Meta", gst_meta_register ("GstV4l2Meta", "GstV4l2Meta",
sizeof (GstV4l2Meta), (GstMetaInitFunction) NULL, sizeof (GstV4l2Meta), (GstMetaInitFunction) NULL,
(GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL); (GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL, tags);
} }
return meta_info; return meta_info;
} }

View File

@ -27,12 +27,13 @@ const GstMetaInfo *
gst_meta_ximage_get_info (void) gst_meta_ximage_get_info (void)
{ {
static const GstMetaInfo *meta_ximage_info = NULL; static const GstMetaInfo *meta_ximage_info = NULL;
static const gchar *tags[] = { "memory", NULL };
if (meta_ximage_info == NULL) { if (meta_ximage_info == NULL) {
meta_ximage_info = meta_ximage_info =
gst_meta_register ("GstMetaXImageSrc", "GstMetaXImageSrc", gst_meta_register ("GstMetaXImageSrc", "GstMetaXImageSrc",
sizeof (GstMetaXImage), (GstMetaInitFunction) NULL, sizeof (GstMetaXImage), (GstMetaInitFunction) NULL,
(GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL); (GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL, tags);
} }
return meta_ximage_info; return meta_ximage_info;
} }