Blob Blame Raw
From ad89c8cc396a6d1461a0fc6adb06585aafa3bc7f Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Thu, 19 Apr 2012 16:43:45 +0400
Subject: [PATCH 08/18] Fix building with IPv6 support

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
 core/AmRtpStream.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/AmRtpStream.cpp b/core/AmRtpStream.cpp
index bb2b0a4..be2ac9b 100644
--- a/core/AmRtpStream.cpp
+++ b/core/AmRtpStream.cpp
@@ -159,7 +159,7 @@ void AmRtpStream::setLocalPort()
 
   l_port = port;
   AmRtpReceiver::instance()->addStream(l_sd,this);
-  DBG("added to RTP receiver (%s:%i)\n",get_addr_str(l_saddr.sin_addr).c_str(),l_port);
+  DBG("added to RTP receiver (%s:%i)\n",get_addr_str( ((struct sockaddr_in*)&l_saddr)->sin_addr ).c_str(),l_port);
 }
 
 int AmRtpStream::ping()
-- 
1.8.0