Segment.toPosition

Convert running_time into a position in the segment so that Segment.toRunningTime with that position returns running_time.

More...
class Segment
ulong
toPosition

Parameters

format GstFormat

the format of the segment.

runningTime ulong

the running_time in the segment

Return Value

Type: ulong

the position in the segment for running_time. This function returns -1 when running_time is -1 or when it is not inside segment.

Detailed Description

Deprecated: Use Segment.positionFromRunningTime instead.