mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
fix inaccurate sample count in file handle, buffered samples were being double tallied
This commit is contained in:
@@ -395,7 +395,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fh->samples_out += orig_len;
|
||||
return status;
|
||||
} else {
|
||||
@@ -550,7 +549,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_close(switch_file_handle_t *fh)
|
||||
if (fh->file_interface->file_write(fh, fh->pre_buffer_data, &blen) != SWITCH_STATUS_SUCCESS) {
|
||||
break;
|
||||
}
|
||||
fh->samples_out += blen;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user