[pulseaudio-discuss] [PATCH 2/2] rtp: Reset timestamp with correct size if not found

David Henningsson david.henningsson at canonical.com
Wed May 22 04:33:09 PDT 2013


This fixes a compiler warning when building under Ubuntu.

Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 src/modules/rtp/rtp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/rtp/rtp.c b/src/modules/rtp/rtp.c
index c094fcf..ee657a4 100644
--- a/src/modules/rtp/rtp.c
+++ b/src/modules/rtp/rtp.c
@@ -286,7 +286,7 @@ int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, pa_mempool *pool, struct
 
     if (!found_tstamp) {
         pa_log_warn("Couldn't find SCM_TIMESTAMP data in auxiliary recvmsg() data!");
-        memset(tstamp, 0, sizeof(tstamp));
+        memset(tstamp, 0, sizeof(struct timeval));
     }
 
     return 0;
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list