meta: add tag for memory metadata
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 1 Mar 2012 14:17:37 +0000 (15:17 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 1 Mar 2012 16:41:57 +0000 (17:41 +0100)
gst/gstmeta.c
gst/gstmeta.h

index 7865030..d81743b 100644 (file)
@@ -36,6 +36,7 @@ static GHashTable *metainfo = NULL;
 static GRWLock lock;
 
 GQuark _gst_meta_transform_copy;
+GQuark _gst_meta_tag_memory;
 
 void
 _priv_gst_meta_initialize (void)
@@ -44,6 +45,7 @@ _priv_gst_meta_initialize (void)
   metainfo = g_hash_table_new (g_str_hash, g_str_equal);
 
   _gst_meta_transform_copy = g_quark_from_static_string ("copy");
+  _gst_meta_tag_memory = g_quark_from_static_string ("memory");
 }
 
 /**
index 5503534..e14f37e 100644 (file)
@@ -193,6 +193,16 @@ const GstMetaInfo *  gst_meta_register          (GType api, const gchar *impl,
                                                  GstMetaTransformFunction transform_func);
 const GstMetaInfo *  gst_meta_get_info          (const gchar * impl);
 
+/* some default tags */
+GST_EXPORT GQuark _gst_meta_tag_memory;
+
+/**
+ * GST_META_TAG_MEMORY:
+ *
+ * Metadata tagged with this tag depends on the particular memory
+ * or buffer that it is on.
+ */
+#define GST_META_TAG_MEMORY (_gst_meta_tag_memory)
 
 G_END_DECLS