From 1c05eeece540afa316d169bf6a2d921b4de79d1d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 28 Feb 2012 11:38:37 +0100 Subject: [PATCH] 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 fc1459e94d..b00b777826 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 b11cd3b05d..669c011887 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 f6ea46a43a..53cf14518c 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 2c7d91dc40..d5f4d2f29b 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; }