From bebafc0ba54d6e486f1ff468486b71268e7fdd53 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 9 Dec 2008 23:31:12 +0000 Subject: [PATCH] suppress frame timestamp when raw write mode is set git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10690 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index f4441cf007..ff099e085a 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -2198,7 +2198,7 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra } else { data = frame->data; len = frame->datalen; - ts = (uint32_t) frame->timestamp; + ts = switch_test_flag(rtp_session, SWITCH_RTP_FLAG_RAW_WRITE) ? (uint32_t) frame->timestamp : 0; } return rtp_common_write(rtp_session, send_msg, data, len, payload, ts, &frame->flags);