[Bug 766647] adapter: Add a method to query current offset
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Jun 7 09:37:53 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=766647
Sebastian Dröge (slomo) <slomo at coaxion.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #328936|reviewed |none
status| |
Attachment #328936|0 |1
is obsolete| |
--- Comment #11 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Created attachment 329246
--> https://bugzilla.gnome.org/attachment.cgi?id=329246&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