git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4665 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-03-19 19:54:36 +00:00
parent 7e2977b2b6
commit bfe8264939
1 changed files with 5 additions and 4 deletions

View File

@ -231,8 +231,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *b
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 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *b
}
frame->datalen = bytes;
frame->samples = bytes / sizeof(int16_t);
frame->rate = read_codec->implementation->samples_per_second;
return SWITCH_STATUS_SUCCESS;
}