missed a spot

This commit is contained in:
Anthony Minessale 2012-09-10 16:57:39 -05:00
parent 40533e7378
commit d0117d5c91
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
}
if (switch_test_flag(handle, SWITCH_FILE_FLAG_WRITE)) {
if (switch_test_flag(handle, SWITCH_FILE_WRITE_APPEND) || switch_test_flag(handle, SWITCH_FILE_WRITE_OVER)) {
if (switch_test_flag(handle, SWITCH_FILE_WRITE_APPEND) || switch_test_flag(handle, SWITCH_FILE_WRITE_OVER) || handle->offset_pos) {
mode += SFM_RDWR;
} else {
mode += SFM_WRITE;