update for metadata tags

This commit is contained in:
Wim Taymans 2012-02-28 11:38:37 +01:00
parent 63ace8872d
commit 1c05eeece5
4 changed files with 12 additions and 5 deletions

View File

@ -153,13 +153,14 @@ const GstMetaInfo *
gst_audio_downmix_meta_get_info (void) gst_audio_downmix_meta_get_info (void)
{ {
static const GstMetaInfo *audio_downmix_meta_info = NULL; static const GstMetaInfo *audio_downmix_meta_info = NULL;
static const gchar *tags[] = { NULL };
if (audio_downmix_meta_info == NULL) { if (audio_downmix_meta_info == NULL) {
audio_downmix_meta_info = audio_downmix_meta_info =
gst_meta_register (GST_AUDIO_DOWNMIX_META_API, "GstAudioDownmixMeta", gst_meta_register (GST_AUDIO_DOWNMIX_META_API, "GstAudioDownmixMeta",
sizeof (GstAudioDownmixMeta), sizeof (GstAudioDownmixMeta),
gst_audio_downmix_meta_init, 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; return audio_downmix_meta_info;
} }

View File

@ -52,12 +52,13 @@ const GstMetaInfo *
gst_video_meta_get_info (void) gst_video_meta_get_info (void)
{ {
static const GstMetaInfo *video_meta_info = NULL; static const GstMetaInfo *video_meta_info = NULL;
static const gchar *tags[] = { "memory", "colorspace", "size", NULL };
if (video_meta_info == NULL) { if (video_meta_info == NULL) {
video_meta_info = gst_meta_register (GST_VIDEO_META_API, "GstVideoMeta", video_meta_info = gst_meta_register (GST_VIDEO_META_API, "GstVideoMeta",
sizeof (GstVideoMeta), sizeof (GstVideoMeta),
(GstMetaInitFunction) NULL, (GstMetaInitFunction) NULL,
(GstMetaFreeFunction) NULL, gst_video_meta_transform); (GstMetaFreeFunction) NULL, gst_video_meta_transform, tags);
} }
return video_meta_info; return video_meta_info;
} }
@ -307,12 +308,13 @@ const GstMetaInfo *
gst_video_crop_meta_get_info (void) gst_video_crop_meta_get_info (void)
{ {
static const GstMetaInfo *video_crop_meta_info = NULL; static const GstMetaInfo *video_crop_meta_info = NULL;
static const gchar *tags[] = { "size", "orientation", NULL };
if (video_crop_meta_info == NULL) { if (video_crop_meta_info == NULL) {
video_crop_meta_info = video_crop_meta_info =
gst_meta_register (GST_VIDEO_CROP_META_API, "GstVideoCropMeta", gst_meta_register (GST_VIDEO_CROP_META_API, "GstVideoCropMeta",
sizeof (GstVideoCropMeta), (GstMetaInitFunction) NULL, sizeof (GstVideoCropMeta), (GstMetaInitFunction) NULL,
(GstMetaFreeFunction) NULL, gst_video_crop_meta_transform); (GstMetaFreeFunction) NULL, gst_video_crop_meta_transform, tags);
} }
return video_crop_meta_info; return video_crop_meta_info;
} }

View File

@ -53,13 +53,15 @@ const GstMetaInfo *
gst_ximage_meta_get_info (void) gst_ximage_meta_get_info (void)
{ {
static const GstMetaInfo *ximage_meta_info = NULL; static const GstMetaInfo *ximage_meta_info = NULL;
static const gchar *tags[] =
{ "memory", "size", "colorspace", "orientation", NULL };
if (ximage_meta_info == NULL) { if (ximage_meta_info == NULL) {
ximage_meta_info = gst_meta_register ("GstXImageMeta", "GstXImageMeta", ximage_meta_info = gst_meta_register ("GstXImageMeta", "GstXImageMeta",
sizeof (GstXImageMeta), sizeof (GstXImageMeta),
(GstMetaInitFunction) NULL, (GstMetaInitFunction) NULL,
(GstMetaFreeFunction) gst_ximage_meta_free, (GstMetaFreeFunction) gst_ximage_meta_free,
(GstMetaTransformFunction) NULL); (GstMetaTransformFunction) NULL, tags);
} }
return ximage_meta_info; return ximage_meta_info;
} }

View File

@ -56,13 +56,15 @@ const GstMetaInfo *
gst_xvimage_meta_get_info (void) gst_xvimage_meta_get_info (void)
{ {
static const GstMetaInfo *xvimage_meta_info = NULL; static const GstMetaInfo *xvimage_meta_info = NULL;
static const gchar *tags[] =
{ "memory", "size", "colorspace", "orientation", NULL };
if (xvimage_meta_info == NULL) { if (xvimage_meta_info == NULL) {
xvimage_meta_info = gst_meta_register ("GstXvImageMeta", "GstXvImageMeta", xvimage_meta_info = gst_meta_register ("GstXvImageMeta", "GstXvImageMeta",
sizeof (GstXvImageMeta), sizeof (GstXvImageMeta),
(GstMetaInitFunction) NULL, (GstMetaInitFunction) NULL,
(GstMetaFreeFunction) gst_xvimage_meta_free, (GstMetaFreeFunction) gst_xvimage_meta_free,
(GstMetaTransformFunction) NULL); (GstMetaTransformFunction) NULL, tags);
} }
return xvimage_meta_info; return xvimage_meta_info;
} }