From faae1d9ff246be463bdaf4d41df21915a907fb18 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 1 Mar 2012 15:17:37 +0100 Subject: [PATCH] meta: add tag for memory metadata --- gst/gstmeta.c | 2 ++ gst/gstmeta.h | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/gst/gstmeta.c b/gst/gstmeta.c index 7865030d3f..d81743b256 100644 --- a/gst/gstmeta.c +++ b/gst/gstmeta.c @@ -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"); } /** diff --git a/gst/gstmeta.h b/gst/gstmeta.h index 55035344b7..e14f37e6d7 100644 --- a/gst/gstmeta.h +++ b/gst/gstmeta.h @@ -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