summaryrefslogtreecommitdiff
path: root/gst/gstbuffer.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-12-23 16:45:18 +0100
committerTim-Philipp Müller <tim@centricular.com>2018-01-27 11:18:19 +0000
commitcd10f14726cbdc497b117e75b320c379b2403916 (patch)
tree5f2460fd7d3b5f1030d2b3408e6d54de1cbd193e /gst/gstbuffer.h
parentb5028383ab9cc96e72595d193700a177a6587891 (diff)
buffer: add gst_buffer_get_n_meta() convenience function
Counts how many metas there are for a certain api type. https://bugzilla.gnome.org/show_bug.cgi?id=791918
Diffstat (limited to 'gst/gstbuffer.h')
-rw-r--r--gst/gstbuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h
index d380a9c7e6..2037820085 100644
--- a/gst/gstbuffer.h
+++ b/gst/gstbuffer.h
@@ -613,6 +613,9 @@ GST_EXPORT
GstMeta * gst_buffer_get_meta (GstBuffer *buffer, GType api);
GST_EXPORT
+guint gst_buffer_get_n_meta (GstBuffer *buffer, GType api);
+
+GST_EXPORT
GstMeta * gst_buffer_add_meta (GstBuffer *buffer, const GstMetaInfo *info,
gpointer params);
GST_EXPORT