jitterbuffer: rework resync handling
authorWim Taymans <wtaymans@redhat.com>
Wed, 2 Jul 2014 15:50:35 +0000 (17:50 +0200)
committerWim Taymans <wtaymans@redhat.com>
Tue, 21 Oct 2014 09:57:34 +0000 (11:57 +0200)
commit2e7f5c08cfb3315fe335455b40c5627ed365357f
tree4a7cb9da9ca46b8742671f0d53b31df770c7cf92
parentbd392d72ee45b0311e4379a4910b27cfaefa1be8
jitterbuffer: rework resync handling

Add a need-resync state, this is when we need to try to lock on to a
time/RTPtime pair.
Always check the RTP timestamps and if they go backwards, mark ourselves
as need-resync.
Only resync when need-resync is TRUE and we have a valid time. Otherwise
we keep the old values. This avoids locking on to an invalid time and
causing us to timestamp everything with -1.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730417
gst/rtpmanager/rtpjitterbuffer.c
gst/rtpmanager/rtpjitterbuffer.h