BaseParse.addIndexEntry

bool addIndexEntry(ulong offset, gst.types.ClockTime ts, bool key, bool force)

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.

Parameters

offsetoffset of entry
tstimestamp associated with offset
keywhether entry refers to keyframe
forceadd entry disregarding sanity checks

Returns

#gboolean indicating whether entry was added