]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missed a spot
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 10 Sep 2012 21:57:39 +0000 (16:57 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 10 Sep 2012 21:57:39 +0000 (16:57 -0500)
src/mod/formats/mod_sndfile/mod_sndfile.c

index e941524b1c5c415e1d91e25f0d4a9c048d1b14fc..fdb40e9a8abc334c8b3275ac63c3c8ff890e9d13 100644 (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;