update for metadata tags
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 28 Feb 2012 10:38:37 +0000 (11:38 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 28 Feb 2012 11:10:14 +0000 (12:10 +0100)
gst-libs/gst/audio/gstaudiometa.c
gst-libs/gst/video/gstvideometa.c
sys/ximage/ximagepool.c
sys/xvimage/xvimagepool.c

index fc1459e..b00b777 100644 (file)
@@ -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;
 }
index b11cd3b..669c011 100644 (file)
@@ -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;
 }
index f6ea46a..53cf145 100644 (file)
@@ -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;
 }
index 2c7d91d..d5f4d2f 100644 (file)
@@ -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;
 }