[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, stable-queue, updated. v0.9.21-71-g65f89dc
Colin Guthrie
gitmailer-noreply at 0pointer.de
Sat May 8 05:48:25 PDT 2010
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The stable-queue branch has been updated
from d519ca41d7eb90c4e2d46c424aa2430593063878 (commit)
- Log -----------------------------------------------------------------
65f89dc rtp: Fix bracketing in pa_rtp_recv.
-----------------------------------------------------------------------
Summary of changes:
src/modules/rtp/rtp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
commit 65f89dca7ce1a7c65e78d452437eae6c9466d763
Author: Colin Guthrie <cguthrie at mandriva.org>
Date: Sat May 8 13:47:19 2010 +0100
rtp: Fix bracketing in pa_rtp_recv.
The syntactically correct error meant that the timestamp was always
marked as found and only the first header was checked.
In the case where the timestamp was the first header, things
would have worked as expected.
Thanks to pino for reporting via bug refs #818
diff --git a/src/modules/rtp/rtp.c b/src/modules/rtp/rtp.c
index 6706a10..74f0ac3 100644
--- a/src/modules/rtp/rtp.c
+++ b/src/modules/rtp/rtp.c
@@ -278,8 +278,8 @@ int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, pa_mempool *pool, struct
pa_memchunk_reset(&c->memchunk);
}
- for (cm = CMSG_FIRSTHDR(&m); cm; cm = CMSG_NXTHDR(&m, cm)) {
- if (cm->cmsg_level == SOL_SOCKET && cm->cmsg_type == SO_TIMESTAMP)
+ for (cm = CMSG_FIRSTHDR(&m); cm; cm = CMSG_NXTHDR(&m, cm))
+ if (cm->cmsg_level == SOL_SOCKET && cm->cmsg_type == SO_TIMESTAMP) {
memcpy(tstamp, CMSG_DATA(cm), sizeof(struct timeval));
found_tstamp = TRUE;
break;
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list