meta: add tag for memory metadata

This commit is contained in:
Wim Taymans 2012-03-01 15:17:37 +01:00
parent b1dfe92f5c
commit faae1d9ff2
2 changed files with 12 additions and 0 deletions

View 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");
}
/**

View 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