[0.11] gst-plugins-base: update for metadata tags
Wim Taymans
wtay at kemper.freedesktop.org
Tue Feb 28 03:42:35 PST 2012
Module: gst-plugins-base
Branch: 0.11
Commit: 1c05eeece540afa316d169bf6a2d921b4de79d1d
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=1c05eeece540afa316d169bf6a2d921b4de79d1d
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Tue Feb 28 11:38:37 2012 +0100
update for metadata tags
---
gst-libs/gst/audio/gstaudiometa.c | 3 ++-
gst-libs/gst/video/gstvideometa.c | 6 ++++--
sys/ximage/ximagepool.c | 4 +++-
sys/xvimage/xvimagepool.c | 4 +++-
4 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/gst-libs/gst/audio/gstaudiometa.c b/gst-libs/gst/audio/gstaudiometa.c
index fc1459e..b00b777 100644
--- a/gst-libs/gst/audio/gstaudiometa.c
+++ b/gst-libs/gst/audio/gstaudiometa.c
@@ -153,13 +153,14 @@ const GstMetaInfo *
gst_audio_downmix_meta_get_info (void)
{
static const GstMetaInfo *audio_downmix_meta_info = NULL;
+ static const gchar *tags[] = { NULL };
if (audio_downmix_meta_info == NULL) {
audio_downmix_meta_info =
gst_meta_register (GST_AUDIO_DOWNMIX_META_API, "GstAudioDownmixMeta",
sizeof (GstAudioDownmixMeta),
gst_audio_downmix_meta_init,
- gst_audio_downmix_meta_free, gst_audio_downmix_meta_transform);
+ gst_audio_downmix_meta_free, gst_audio_downmix_meta_transform, tags);
}
return audio_downmix_meta_info;
}
diff --git a/gst-libs/gst/video/gstvideometa.c b/gst-libs/gst/video/gstvideometa.c
index b11cd3b..669c011 100644
--- a/gst-libs/gst/video/gstvideometa.c
+++ b/gst-libs/gst/video/gstvideometa.c
@@ -52,12 +52,13 @@ const GstMetaInfo *
gst_video_meta_get_info (void)
{
static const GstMetaInfo *video_meta_info = NULL;
+ static const gchar *tags[] = { "memory", "colorspace", "size", NULL };
if (video_meta_info == NULL) {
video_meta_info = gst_meta_register (GST_VIDEO_META_API, "GstVideoMeta",
sizeof (GstVideoMeta),
(GstMetaInitFunction) NULL,
- (GstMetaFreeFunction) NULL, gst_video_meta_transform);
+ (GstMetaFreeFunction) NULL, gst_video_meta_transform, tags);
}
return video_meta_info;
}
@@ -307,12 +308,13 @@ const GstMetaInfo *
gst_video_crop_meta_get_info (void)
{
static const GstMetaInfo *video_crop_meta_info = NULL;
+ static const gchar *tags[] = { "size", "orientation", NULL };
if (video_crop_meta_info == NULL) {
video_crop_meta_info =
gst_meta_register (GST_VIDEO_CROP_META_API, "GstVideoCropMeta",
sizeof (GstVideoCropMeta), (GstMetaInitFunction) NULL,
- (GstMetaFreeFunction) NULL, gst_video_crop_meta_transform);
+ (GstMetaFreeFunction) NULL, gst_video_crop_meta_transform, tags);
}
return video_crop_meta_info;
}
diff --git a/sys/ximage/ximagepool.c b/sys/ximage/ximagepool.c
index f6ea46a..53cf145 100644
--- a/sys/ximage/ximagepool.c
+++ b/sys/ximage/ximagepool.c
@@ -53,13 +53,15 @@ const GstMetaInfo *
gst_ximage_meta_get_info (void)
{
static const GstMetaInfo *ximage_meta_info = NULL;
+ static const gchar *tags[] =
+ { "memory", "size", "colorspace", "orientation", NULL };
if (ximage_meta_info == NULL) {
ximage_meta_info = gst_meta_register ("GstXImageMeta", "GstXImageMeta",
sizeof (GstXImageMeta),
(GstMetaInitFunction) NULL,
(GstMetaFreeFunction) gst_ximage_meta_free,
- (GstMetaTransformFunction) NULL);
+ (GstMetaTransformFunction) NULL, tags);
}
return ximage_meta_info;
}
diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c
index 2c7d91d..d5f4d2f 100644
--- a/sys/xvimage/xvimagepool.c
+++ b/sys/xvimage/xvimagepool.c
@@ -56,13 +56,15 @@ const GstMetaInfo *
gst_xvimage_meta_get_info (void)
{
static const GstMetaInfo *xvimage_meta_info = NULL;
+ static const gchar *tags[] =
+ { "memory", "size", "colorspace", "orientation", NULL };
if (xvimage_meta_info == NULL) {
xvimage_meta_info = gst_meta_register ("GstXvImageMeta", "GstXvImageMeta",
sizeof (GstXvImageMeta),
(GstMetaInitFunction) NULL,
(GstMetaFreeFunction) gst_xvimage_meta_free,
- (GstMetaTransformFunction) NULL);
+ (GstMetaTransformFunction) NULL, tags);
}
return xvimage_meta_info;
}
More information about the gstreamer-commits
mailing list