chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dcb5ff
)
log rtp timestamp updates (which shows that they are wrong)
author
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 17 Sep 2007 18:23:09 +0000
(19:23 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 17 Sep 2007 18:23:09 +0000
(19:23 +0100)
server/speaker.c
patch
|
blob
|
blame
|
history
diff --git
a/server/speaker.c
b/server/speaker.c
index 4e79cdb08059691a1b1574ee44df772f25cf9531..f7e2f590a41ab1be6a99e6c93f60aa233ee00da2 100644
(file)
--- a/
server/speaker.c
+++ b/
server/speaker.c
@@
-648,9
+648,11
@@
static void play(size_t frames) {
struct timeval now;
xgettimeofday(&now, 0);
/* There's been a gap. Fix up the RTP time accordingly. */
struct timeval now;
xgettimeofday(&now, 0);
/* There's been a gap. Fix up the RTP time accordingly. */
- rtp_time += (((now.tv_sec + now.tv_usec /1000000.0)
- - (rtp_time_real.tv_sec + rtp_time_real.tv_usec / 1000000.0))
- * playing->format.rate * playing->format.channels);
+ const long offset = (((now.tv_sec + now.tv_usec /1000000.0)
+ - (rtp_time_real.tv_sec + rtp_time_real.tv_usec / 1000000.0))
+ * playing->format.rate * playing->format.channels);
+ info("offset RTP timestamp by %ld", offset);
+ rtp_time += offset;
}
header.vpxcc = 2 << 6; /* V=2, P=0, X=0, CC=0 */
header.seq = htons(rtp_seq++);
}
header.vpxcc = 2 << 6; /* V=2, P=0, X=0, CC=0 */
header.seq = htons(rtp_seq++);