]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 12 Jul 2013 21:59:35 +0000 (16:59 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 12 Jul 2013 21:59:35 +0000 (16:59 -0500)
src/switch_rtp.c

index 661ce3f7d4804e4d641f56967c09eed6c8f53c39..6bdcbc5c0efb3134fb71a4de2c72454df62a86e7 100644 (file)
@@ -270,7 +270,6 @@ typedef struct ts_normalize_s {
        uint32_t last_frame;
        uint32_t ts;
        uint32_t delta;
-       uint8_t m;
 } ts_normalize_t;
 
 struct switch_rtp {
@@ -5484,7 +5483,6 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
 
                if (!rtp_session->ts_norm.last_ssrc || send_msg->header.ssrc != rtp_session->ts_norm.last_ssrc) {
                        if (rtp_session->ts_norm.last_ssrc) {
-                               rtp_session->ts_norm.m = 1;
                                if (rtp_session->ts_norm.delta) {
                                        rtp_session->ts_norm.ts += rtp_session->ts_norm.delta;
                                }
@@ -5502,13 +5500,6 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
                rtp_session->ts_norm.last_frame = ntohl(send_msg->header.ts);
                send_msg->header.ts = htonl(rtp_session->ts_norm.ts);
 
-               if (rtp_session->ts_norm.m) {
-                       if (send_msg->header.m) {
-                               rtp_session->ts_norm.m = 0;
-                       } else {
-                               send_msg->header.m = 1;
-                       }
-               }
        }
 
        send_msg->header.ssrc = htonl(rtp_session->ssrc);