From c651b0f6f174fc2321cdc333a103aa908b24d811 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 14 Nov 2011 11:44:43 +0100 Subject: [PATCH] rtp: use the right type when checking cmsg_type Use SCM_* instead of SO_* when checking the type of each cmsghdr. See bug #42715 --- src/modules/rtp/rtp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rtp/rtp.c b/src/modules/rtp/rtp.c index 05c736a..178717c 100644 --- a/src/modules/rtp/rtp.c +++ b/src/modules/rtp/rtp.c @@ -278,14 +278,14 @@ int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, pa_mempool *pool, struct } for (cm = CMSG_FIRSTHDR(&m); cm; cm = CMSG_NXTHDR(&m, cm)) - if (cm->cmsg_level == SOL_SOCKET && cm->cmsg_type == SO_TIMESTAMP) { + if (cm->cmsg_level == SOL_SOCKET && cm->cmsg_type == SCM_TIMESTAMP) { memcpy(tstamp, CMSG_DATA(cm), sizeof(struct timeval)); found_tstamp = TRUE; break; } if (!found_tstamp) { - pa_log_warn("Couldn't find SO_TIMESTAMP data in auxiliary recvmsg() data!"); + pa_log_warn("Couldn't find SCM_TIMESTAMP data in auxiliary recvmsg() data!"); memset(tstamp, 0, sizeof(tstamp)); } -- 1.7.7