]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
bracket in the wrong place
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Nov 2009 16:32:25 +0000 (16:32 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Nov 2009 16:32:25 +0000 (16:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15619 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index e4fa52e5127b70303bc05d0b383efc1c691b0be4..d22dc02de40de6094acf07a312b8bd9d98c1bd99 100644 (file)
@@ -2922,11 +2922,12 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
 
                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;