-1 when stream_time is -1 or when it is not inside segment.
Segment.positionFromStreamTime
ulong positionFromStreamTime(gst.types.Format format, ulong streamTime)Convert stream_time into a position in the segment so that [gst.segment.Segment.toStreamTime] with that position returns stream_time.
Parameters
format | the format of the segment. |
streamTime | the stream_time in the segment |
Returns
the position in the segment for stream_time. This function returns