From: Anthony Minessale Date: Mon, 10 Sep 2012 21:57:39 +0000 (-0500) Subject: missed a spot X-Git-Tag: v1.2.3^2~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0117d5c911361ffcfc1723e9ff952fd24f73c94;p=thirdparty%2Ffreeswitch.git missed a spot --- diff --git a/src/mod/formats/mod_sndfile/mod_sndfile.c b/src/mod/formats/mod_sndfile/mod_sndfile.c index e941524b1c..fdb40e9a8a 100644 --- a/src/mod/formats/mod_sndfile/mod_sndfile.c +++ b/src/mod/formats/mod_sndfile/mod_sndfile.c @@ -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;