Commit faae1d9f authored by Wim Taymans's avatar Wim Taymans

meta: add tag for memory metadata

parent b1dfe92f
......@@ -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");
}
/**
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment