From: Michael Jerris Date: Mon, 27 Jul 2009 16:25:41 +0000 (+0000) Subject: mod_sndfile: update pos on the file handle on reads (MODFORM-33) X-Git-Tag: v1.0.4~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fe6ae30c127d8ff41da263c3a321778fad1ee87;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/src/mod/formats/mod_sndfile/mod_sndfile.c b/src/mod/formats/mod_sndfile/mod_sndfile.c index 1915932980..896f711a2b 100644 --- a/src/mod/formats/mod_sndfile/mod_sndfile.c +++ b/src/mod/formats/mod_sndfile/mod_sndfile.c @@ -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;