gstreamer/docs/gst
Tim-Philipp Müller f62ee97592 buffer: store sequence number for metas
For metas where order might be significant if multiple metas are
attached to the same buffer, so store a sequence number with the
meta when adding it to the buffer. This allows users of the meta
to make sure metas are processed in the right order.

We need a 64-bit integer for the sequence number here in the API,
a 32-bit one might overflow too easily with high packet/buffer
rates. We could do it rtp-seqnum style of course, but that's a
bit of a pain.

We could also make it so that gst_buffer_add_meta() just keeps metas in
order or rely on the order we add the metas in, but that seems too
fragile overall, when buffers (incl. metas) get merged or split.

Also add a compare function for easier sorting.

We store the seqnum in the MetaItem struct here and not in the
GstMeta struct since there's no padding in the GstMeta struct.
We could add a private struct to GstMeta before the start of
GstMeta, but that's what MetaItem effectively is implementation-
wise. We can still change this later if we want, since it's all
private.

Fixes #262
2019-02-12 17:53:08 +00:00
..
.gitignore .gitignore: add new .svg file in docs 2010-04-08 10:10:18 +01:00
building.xml docs: Some grammar and typo corrections. 2009-03-30 10:33:51 +02:00
gst-universe.dot docs: add concept map 2010-04-08 10:30:41 +03:00
gstreamer-docs.sgml docs: Misc addition/fixes 2017-12-05 18:48:56 +01:00
gstreamer-overrides.txt docs/: Add these files to CVS. Now I really don't understand what's going on, but like whatever. I want green buildbot! 2005-03-29 14:34:51 +00:00
gstreamer-sections.txt buffer: store sequence number for metas 2019-02-12 17:53:08 +00:00
gstreamer.types.in gst: add a promise object 2017-11-23 00:48:30 +11:00
Makefile.am gst: GST_EXPORT -> GST_API 2018-03-13 00:45:35 +00:00
meson.build meson: Use copy: true for configure_file() 2018-07-25 14:25:59 +05:30
running.xml Generate a gstreamer pipeline diagram on SIGHUP. 2017-07-13 14:02:33 +01:00