diff options
author | Wim Taymans <wtaymans@redhat.com> | 2013-12-09 23:34:10 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2013-12-09 23:34:10 +0100 |
commit | ea2a222cef0fe0a3461ed876c0b4d7006d6ccbcc (patch) | |
tree | 82d81443df1d827658a4332fb944c1ac3b981585 /gst/rtpmanager/rtpjitterbuffer.h | |
parent | fdf8ac40d84544ed8466e3c012bfe493b1eb9b10 (diff) |
jitterbuffer: correctly check for invalid values
Check for -1 on the guint from the buffer item instead of on the guint16
or guint32.
Also insert -1 seqnum at the head of the jitterbuffer.
Diffstat (limited to 'gst/rtpmanager/rtpjitterbuffer.h')
-rw-r--r-- | gst/rtpmanager/rtpjitterbuffer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/rtpmanager/rtpjitterbuffer.h b/gst/rtpmanager/rtpjitterbuffer.h index 845c13664..63eff02b0 100644 --- a/gst/rtpmanager/rtpjitterbuffer.h +++ b/gst/rtpmanager/rtpjitterbuffer.h @@ -111,10 +111,12 @@ struct _RTPJitterBufferClass { * @data: the data of the item * @next: pointer to next item * @prev: pointer to previous item - * @type: the type of @data + * @type: the type of @data, used freely by caller * @dts: input DTS * @pts: output PTS - * @seqnum: seqnum + * @seqnum: seqnum, the seqnum is used to insert the item in the + * right position in the jitterbuffer and detect duplicates. Use -1 to + * append. * @count: amount of seqnum in this item * @rtptime: rtp timestamp * |