]> git.sesse.net Git - vlc/commitdiff
Remove useless optimistic synchronization hack
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 3 Dec 2008 20:17:05 +0000 (22:17 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 4 Dec 2008 18:54:38 +0000 (20:54 +0200)
We do it more properly when creating a source anyway.

modules/access/rtp/session.c

index 40b3a4c4c2dd57a2688b82519498483f23a562c6..02ec61df515362c5333dd307af8a68a6b868d5ee 100644 (file)
@@ -316,13 +316,6 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
     src->last_rx = now;
     src->last_ts = rtp_timestamp (block);
 
-    /* Be optimistic for the first packet. Certain codec, such as Vorbis
-     * do not like loosing the first packet(s), so we cannot just wait
-     * for proper sequence synchronization. And we don't want to assume that
-     * the sender starts at seq=0 either. */
-    if (src->blocks == NULL)
-        src->max_seq = seq - p_sys->max_dropout;
-
     /* Check sequence number */
     /* NOTE: the sequence number is per-source,
      * but is independent from the payload type. */