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

Freeswitch SVN anthm at freeswitch.org
Mon Mar 19 15:43:25 EDT 2007


Author: anthm
Date: Mon Mar 19 15:43:25 2007
New Revision: 4663

Modified:
   freeswitch/trunk/src/switch_core.c

Log:
update

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Mon Mar 19 15:43:25 2007
@@ -2164,6 +2164,9 @@
 										   session->read_codec->implementation->bytes_per_frame * 20, session->pool);
 				}
 			case SWITCH_STATUS_SUCCESS:
+				session->raw_read_frame.samples = session->raw_read_frame.datalen / sizeof(int16_t);
+				session->raw_read_frame.rate = read_frame->rate;
+				session->raw_read_frame.timestamp = read_frame->timestamp;
 				read_frame = &session->raw_read_frame;
 				break;
 			case SWITCH_STATUS_NOOP:
@@ -2414,6 +2417,9 @@
 				}
 				break;
 			case SWITCH_STATUS_SUCCESS:
+				session->raw_write_frame.samples = frame->datalen / sizeof(int16_t);
+				session->raw_write_frame.timestamp = frame->timestamp;
+				session->raw_write_frame.rate = frame->rate;
 				write_frame = &session->raw_write_frame;
 				break;
 			case SWITCH_STATUS_BREAK:



More information about the Freeswitch-svn mailing list