change len to seconds

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13127 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-23 00:30:43 +00:00
parent 61960f92b6
commit fd6c821f6e
1 changed files with 1 additions and 1 deletions

View File

@ -1064,7 +1064,7 @@ switch_status_t measure_file_len(const char *path, switch_size_t *message_len)
SWITCH_FILE_FLAG_READ | SWITCH_FILE_DATA_SHORT, NULL) == SWITCH_STATUS_SUCCESS) {
if (switch_core_file_seek(&fh, &pos, 0, SEEK_END) == SWITCH_STATUS_SUCCESS) {
*message_len = pos;
*message_len = pos / fh.samplerate;
status = SWITCH_STATUS_SUCCESS;
}
switch_core_file_close(&fh);