[asterisk-commits] russell: trunk r250871 - /trunk/include/asterisk/rtp_engine.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 4 20:07:36 CST 2010
Author: russell
Date: Thu Mar 4 20:07:33 2010
New Revision: 250871
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=250871
Log:
Fix up the ast_rtp_property enum.
The mis-placement of the latest entry meant that when it was set, it was writing
one index past the end of the properties array in the ast_rtp_instance (which
happened to be the local_address field).
Modified:
trunk/include/asterisk/rtp_engine.h
Modified: trunk/include/asterisk/rtp_engine.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/rtp_engine.h?view=diff&rev=250871&r1=250870&r2=250871
==============================================================================
--- trunk/include/asterisk/rtp_engine.h (original)
+++ trunk/include/asterisk/rtp_engine.h Thu Mar 4 20:07:33 2010
@@ -92,10 +92,15 @@
AST_RTP_PROPERTY_STUN,
/*! Enable RTCP support */
AST_RTP_PROPERTY_RTCP,
- /*! Maximum number of RTP properties supported */
- AST_RTP_PROPERTY_MAX,
/*! Don't force a new SSRC on new source */
AST_RTP_PROPERTY_CONSTANT_SSRC,
+
+ /*!
+ * \brief Maximum number of RTP properties supported
+ *
+ * \note THIS MUST BE THE LAST ENTRY IN THIS ENUM.
+ */
+ AST_RTP_PROPERTY_MAX,
};
/*! Additional RTP options */
More information about the asterisk-commits
mailing list