r2612 - trunk/libminisip/source/rtp
Zach Welch
zach-minisip at splitstring.com
Sun Jun 4 12:51:07 CEST 2006
werner at minisip.org wrote:
> Author: werner
> Date: 2006-06-04 10:07:43 +0200 (Sun, 04 Jun 2006)
> New Revision: 2612
>
> Modified:
[snip]
> trunk/libminisip/source/rtp/RtpPacket.cxx
[snip]
The changes to this file are not wrapped in ZRTP_SUPPORT, so the build
fails because of an undefined variable. Attached is a patch to fix it.
Cheers,
Zach
-------------- next part --------------
Index: trunk/libminisip/source/rtp/RtpPacket.cxx
===================================================================
--- trunk/libminisip/source/rtp/RtpPacket.cxx (revision 2613)
+++ trunk/libminisip/source/rtp/RtpPacket.cxx (working copy)
@@ -68,6 +68,9 @@
RtpPacket::RtpPacket(RtpHeader hdr, unsigned char *content, int content_length): header(hdr) {
+#ifndef ZRTP_SUPPORT
+ size_t extensionLength = 0;
+#else
extensionLength = 0;
extensionHeader = NULL;
@@ -90,6 +93,7 @@
extensionHeader = content;
}
}
+#endif
this->content_length = content_length;
if( content_length > 0 ){
@@ -102,6 +106,7 @@
header.setVersion(2);
}
+#ifdef ZRTP_SUPPORT
void RtpPacket::setExtHeader(unsigned char* data, int length) {
A
if (data == NULL || length == 0) {
@@ -120,6 +125,7 @@
content_length += length;
header.setExtension(1);
}
+#endif
RtpHeader &RtpPacket::getHeader(){
return header;
More information about the Minisip-devel
mailing list