mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
rtpjitterbuffer: don't calculate skew without rtptime
Skip trying to calculate the skew when we don't have an rtptime. It causes problems when lost packet events are placed in the jitterbuffer.
This commit is contained in:
parent
c1aae07909
commit
d4b4b4e924
1 changed files with 3 additions and 0 deletions
|
@ -685,6 +685,9 @@ rtp_jitter_buffer_insert (RTPJitterBuffer * jbuf, RTPJitterBufferItem * item,
|
|||
dts = item->dts;
|
||||
rtptime = item->rtptime;
|
||||
|
||||
if (rtptime == -1)
|
||||
goto append;
|
||||
|
||||
/* rtp time jumps are checked for during skew calculation, but bypassed
|
||||
* in other mode, so mind those here and reset jb if needed.
|
||||
* Only reset if valid input time, which is likely for UDP input
|
||||
|
|
Loading…
Reference in a new issue