]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sndfile: update pos on the file handle on reads (MODFORM-33)
authorMichael Jerris <mike@jerris.com>
Mon, 27 Jul 2009 16:25:41 +0000 (16:25 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 27 Jul 2009 16:25:41 +0000 (16:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14377 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_sndfile/mod_sndfile.c

index 1915932980f9090fdafbf37284186e4bf25958cb..896f711a2bc8a11d53584ed475c93d36c9b9e41d 100644 (file)
@@ -257,6 +257,7 @@ static switch_status_t sndfile_file_read(switch_file_handle_t *handle, void *dat
                *len = (size_t) sf_readf_int(context->handle, (int *) data, inlen);
        }
 
+       handle->pos += *len;
        handle->sample_count += *len;
 
        return *len ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE;