[Freeswitch-svn] [commit] r10690 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Dec 9 15:31:12 PST 2008


Author: anthm
Date: Tue Dec  9 18:31:12 2008
New Revision: 10690

Log:
suppress frame timestamp when raw write mode is set

Modified:
   freeswitch/trunk/src/switch_rtp.c

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Tue Dec  9 18:31:12 2008
@@ -2198,7 +2198,7 @@
 	} 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);



More information about the Freeswitch-svn mailing list