seqnum_compare


Description:

public int32 seqnum_compare (uint32 s1, uint32 s2)

Compare two sequence numbers, handling wraparound.

The current implementation just returns (gint32)(s1 - s2).

Parameters:

s1

A sequence number.

s2

Another sequence number.

Returns:

A negative number if s1 is before s2, 0 if they are equal, or a positive number if s1 is after s2.


Namespace: Gst.Util
Package: gstreamer-1.0