Skip to content
  • Edward Hervey's avatar
    adapter: Add methods to query current offset · 67ae0ad2
    Edward Hervey authored and Sebastian Dröge's avatar Sebastian Dröge committed
    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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766647
    67ae0ad2