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

Freeswitch SVN anthm at freeswitch.org
Mon Mar 19 15:54:37 EDT 2007


Author: anthm
Date: Mon Mar 19 15:54:36 2007
New Revision: 4665

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:54:36 2007
@@ -231,8 +231,8 @@
 	uint32_t blen;
 	size_t rdlen = 0;
 	uint32_t maxlen;
-
-
+	switch_codec_t *read_codec = switch_core_session_get_read_codec(bug->session);
+	
 	if (bug->raw_read_buffer) {
 		rlen = switch_buffer_inuse(bug->raw_read_buffer);
 	}
@@ -299,8 +299,9 @@
 		}
 
 		frame->datalen = bytes;
-
-
+		frame->samples = bytes / sizeof(int16_t);
+		frame->rate = read_codec->implementation->samples_per_second;
+		
 		return SWITCH_STATUS_SUCCESS;
 	}
 



More information about the Freeswitch-svn mailing list