have samples_out reflect what was written to the FH not the file even with buffering

This commit is contained in:
Anthony Minessale 2011-01-24 09:41:53 -06:00
parent 0e37dcb5db
commit 6294bc1620
1 changed files with 1 additions and 1 deletions

View File

@ -391,10 +391,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh,
if ((status = fh->file_interface->file_write(fh, fh->pre_buffer_data, &blen)) != SWITCH_STATUS_SUCCESS) {
*len = 0;
}
fh->samples_out += blen;
}
}
fh->samples_out += orig_len;
return status;
} else {
switch_status_t status;