mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-19 17:57:22 +00:00
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:
parent
61960f92b6
commit
fd6c821f6e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user