summaryrefslogtreecommitdiff
path: root/gst/gstbuffer.h
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2020-09-01 23:03:18 +0200
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-09-27 11:08:03 +0000
commitbbca6b1ddf746ad905fd25cfc3410b70575ea0f2 (patch)
tree0219bc9ef874b9fb439877d76ec40770bd92b0ff /gst/gstbuffer.h
parente9c99c05ae99aaeb5851524cf5ff9c2eaa4ad902 (diff)
meta: expose API to register and create custom meta
Custom meta is backed by a GstStructure, and does not require that users of the API expose their GstMeta implementation as public API for other components to make use of it. In addition, it provides a simpler interface by ignoring the impl vs. api distinction that the regular API exposes. This new API is meant to be the meta counterpart to custom events and messages, and to be more convenient than the lower-level API when the absolute best performance isn't a requirement. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/609>
Diffstat (limited to 'gst/gstbuffer.h')
-rw-r--r--gst/gstbuffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h
index 82adce907e..682ac9697a 100644
--- a/gst/gstbuffer.h
+++ b/gst/gstbuffer.h
@@ -664,6 +664,14 @@ gboolean gst_buffer_foreach_meta (GstBuffer *buffer,
GstBufferForeachMetaFunc func,
gpointer user_data);
+GST_API
+GstCustomMeta * gst_buffer_add_custom_meta (GstBuffer *buffer,
+ const gchar *name);
+
+GST_API
+GstCustomMeta * gst_buffer_get_custom_meta (GstBuffer *buffer,
+ const gchar *name);
+
/**
* gst_value_set_buffer:
* @v: a #GValue to receive the data