[vlc-devel] commit: Revert "Revert "RTP: Make sure we wait >= 25 msec for reordered packets"" ( Marian Ďurkovič )
git version control
git at videolan.org
Thu Oct 15 10:22:52 CEST 2009
vlc | branch: 1.0-bugfix | Marian Ďurkovič <md at bts.sk> | Thu Oct 15 10:15:45 2009 +0200| [334fd3c968aca1d056fc6538d8b3679caa8fc246] | committer: Marian Ďurkovič
Revert "Revert "RTP: Make sure we wait >= 25 msec for reordered packets""
This reverts commit d060e11bd725a6b2b9bc11e57fc809cfc51a086b.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=334fd3c968aca1d056fc6538d8b3679caa8fc246
---
modules/access/rtp/session.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/access/rtp/session.c b/modules/access/rtp/session.c
index f0be0b1..d7af84a 100644
--- a/modules/access/rtp/session.c
+++ b/modules/access/rtp/session.c
@@ -496,6 +496,9 @@ bool rtp_dequeue (demux_t *demux, const rtp_session_t *session,
deadline += UINT64_C(3) * CLOCK_FREQ * src->jitter
/ pt->frequency;
+ /* Make sure we wait at least for 25 msec */
+ deadline = __MAX(deadline, src->ref_ts + CLOCK_FREQ / 40);
+
if (now >= deadline)
{
rtp_decode (demux, session, src);
More information about the vlc-devel
mailing list