chiark / gitweb /
more rtp_time fixes. still borked l-(
authorRichard Kettlewell <rjk@greenend.org.uk>
Mon, 17 Sep 2007 18:37:29 +0000 (19:37 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Mon, 17 Sep 2007 18:37:29 +0000 (19:37 +0100)
server/speaker.c

index 4c4f421..f206a75 100644 (file)
@@ -654,8 +654,8 @@ static void play(size_t frames) {
       if(offset >= 0) {
         info("offset RTP timestamp by %ld", offset);
         rtp_time += offset;
-      } else
-        xgettimeofday(&rtp_time_real, 0);
+      }
+      rtp_time_real = now;
     }
     header.vpxcc = 2 << 6;              /* V=2, P=0, X=0, CC=0 */
     header.seq = htons(rtp_seq++);