[Bug 766647] adapter: Add a method to query current offset
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jun 2 09:46:24 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766647
--- Comment #7 from Edward Hervey <bilboed at bilboed.com> ---
Created attachment 328936
--> https://bugzilla.gnome.org/attachment.cgi?id=328936&action=edit
adapter: Add methods to query current offset
API: gst_buffer_prev_offset
API: gst_buffer_get_offset_from_discont
The gst_buffer_get_offset_from_discont() method allows retrieving the current
offset based on the GST_BUFFER_OFFSET of the buffers that were pushed in.
The offset will be set initially by the GST_BUFFER_OFFSET of
DISCONT buffers, and then incremented by the sizes of the following
buffers.
The gst_buffer_prev_offset() method allows retrievent the previous
GST_BUFFER_OFFSET regardless of flags. It works in the same way as
the other gst_buffer_prev_*() methods.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list