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
offset | offset of entry |
ts | timestamp associated with offset |
key | whether entry refers to keyframe |
force | add entry disregarding sanity checks |
Returns
#gboolean indicating whether entry was added