mod_sndfile: update pos on the file handle on reads (MODFORM-33)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14377 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-07-27 16:25:41 +00:00
parent 7d205f5d6c
commit 3fe6ae30c1
1 changed files with 1 additions and 0 deletions

View 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); *len = (size_t) sf_readf_int(context->handle, (int *) data, inlen);
} }
handle->pos += *len;
handle->sample_count += *len; handle->sample_count += *len;
return *len ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE; return *len ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE;