Revision
15619
Author
anthm
Date
2009-11-23 10:32:25 -0600 (Mon, 23 Nov 2009)

Log Message

bracket in the wrong place

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_rtp.c (15618 => 15619)


--- freeswitch/trunk/src/switch_rtp.c	2009-11-23 16:31:28 UTC (rev 15618)
+++ freeswitch/trunk/src/switch_rtp.c	2009-11-23 16:32:25 UTC (rev 15619)
@@ -2922,11 +2922,12 @@
 
 		if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
 			send_msg->header.pt = rtp_session->payload;
+		}
 
-			if (switch_socket_sendto(rtp_session->sock_output, rtp_session->remote_addr, 0, frame->packet, &bytes) != SWITCH_STATUS_SUCCESS) {
-				return -1;
-			}
+		if (switch_socket_sendto(rtp_session->sock_output, rtp_session->remote_addr, 0, frame->packet, &bytes) != SWITCH_STATUS_SUCCESS) {
+			return -1;
 		}
+		
 
 		rtp_session->stats.outbound.raw_bytes += bytes;
 		rtp_session->stats.outbound.media_bytes += bytes;