buffer: Add a GST_BUFFER_DTS_OR_PTS macro
authorEdward Hervey <edward@centricular.com>
Mon, 26 Oct 2015 06:59:54 +0000 (07:59 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 27 Oct 2015 07:33:23 +0000 (08:33 +0100)
commit41e1bea7efb8196820539534b3d07eeb621b36c0
treeb3ea16846b3a9fc6b3325d06ac18e1204aa33c96
parentf0ee10d77879fdf566dd640068e911adf974dc59
buffer: Add a GST_BUFFER_DTS_OR_PTS macro

API: GST_BUFFER_DTS_OR_PTS

Many scenarios/elements require dealing with streams of buffers that
might have DTS set (i.e. encoded data, potentially reordered)

To simplify getting the increasing "timestamp" of those buffers, create
a macro that will return the DTS if valid, and if not the PTS
docs/gst/gstreamer-sections.txt
gst/gstbuffer.h