From 045eb8a9de2db8163ef8f18c9735d3a1bb910388 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sun, 18 Feb 2007 16:51:11 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4318 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index bcc1cf8a7c..1a355d5431 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -491,7 +491,6 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session } } - rtp_session->ready++; *new_rtp_session = rtp_session; return SWITCH_STATUS_SUCCESS; @@ -524,6 +523,8 @@ SWITCH_DECLARE(switch_rtp_t *)switch_rtp_new(char *rx_host, return NULL; } + rtp_session->ready = 1; + return rtp_session; }