aboutsummaryrefslogtreecommitdiffstats
path: root/src/trau/osmo_ortp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-06 13:34:43 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-06 13:37:08 +0200
commite58d33153dd2bed3629b9a09fd6add58f296bd6a (patch)
tree5b426114f8986229563cfc9768f1eb6005045b15 /src/trau/osmo_ortp.c
parent2bfc01dfd8830cf36bb8f7564604f7f357c0a0fb (diff)
ortp: Fix the version check for ORTP by not using the cached result
The second check used the cached result for ORTP. Store the result in ORTP_VERSION and my system properly detects that it is running on < 0.21. The HAVE_ORTP_021 will always be defined so just use #if and not the #ifdef to fix the build.
Diffstat (limited to 'src/trau/osmo_ortp.c')
-rw-r--r--src/trau/osmo_ortp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index 7dcff60..2f2f26c 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -349,7 +349,7 @@ struct osmo_rtp_socket *osmo_rtp_socket_create(void *talloc_ctx, unsigned int fl
int osmo_rtp_socket_bind(struct osmo_rtp_socket *rs, const char *ip, int port)
{
int rc;
-#ifdef HAVE_ORTP_021
+#if HAVE_ORTP_021
rc = rtp_session_set_local_addr(rs->sess, ip, port, port+1);
#else
rc = rtp_session_set_local_addr(rs->sess, ip, port);