VideoTimeCode.compare

Compares tc1 and tc2. If both have latest daily jam information, it is taken into account. Otherwise, it is assumed that the daily jam of both tc1 and tc2 was at the same time. Both time codes must be valid.

class VideoTimeCode
int
compare

Parameters

tc2 gstvideo.video_time_code.VideoTimeCode

another valid #GstVideoTimeCode

Return Value

Type: int

1 if tc1 is after tc2, -1 if tc1 is before tc2, 0 otherwise.