BaseParse.addIndexEntry

Adds an entry to the index associating offset to ts. It is recommended to only add keyframe entries. force allows to bypass checks, such as whether the stream is (upstream) seekable, another entry is already "close" to the new entry, etc.

class BaseParse
bool
addIndexEntry
(
ulong offset
,,
bool key
,
bool force
)

Parameters

offset ulong

offset of entry

ts GstClockTime

timestamp associated with offset

key bool

whether entry refers to keyframe

force bool

add entry disregarding sanity checks

Return Value

Type: bool

gboolean indicating whether entry was added