mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
meta: add tag for memory metadata
This commit is contained in:
parent
b1dfe92f5c
commit
faae1d9ff2
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue