From de1ca68077c65756a0d60743a823746749b2b1f0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 28 Feb 2011 10:16:52 +0100 Subject: [PATCH] v4l2: register metadata --- sys/v4l2/gstv4l2bufferpool.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index d4969bc..5c3f018 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -55,6 +55,21 @@ GST_DEBUG_CATEGORY_EXTERN (v4l2_debug); /* * GstV4l2Buffer: */ +const GstMetaInfo * +gst_meta_v4l2_get_info (void) +{ + static const GstMetaInfo *meta_info = NULL; + + if (meta_info == NULL) { + meta_info = + gst_meta_register ("GstMetaV4l2", "GstMetaV4l2", + sizeof (GstMetaV4l2), (GstMetaInitFunction) NULL, + (GstMetaFreeFunction) NULL, (GstMetaCopyFunction) NULL, + (GstMetaSubFunction) NULL, (GstMetaSerializeFunction) NULL, + (GstMetaDeserializeFunction) NULL); + } + return meta_info; +} static void gst_v4l2_buffer_dispose (GstBuffer * buffer) -- 2.7.4