From: Anthony Minessale Date: Fri, 29 Mar 2013 15:43:12 +0000 (-0500) Subject: FS-5242 X-Git-Tag: v1.3.17-final~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47e6dfbbdfdc0944707d3db2877464803a52645b;p=thirdparty%2Ffreeswitch.git FS-5242 --- diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index e3fda4bef9..b11718488f 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -893,7 +893,12 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in switch_buffer_zero(context->audio_buffer); *cur_sample = mpg123_seek(context->mh, (off_t) samples, whence); - return *cur_sample >= 0 ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE; + if (*cur_sample >= 0) { + handle->pos = *cur_sample; + return SWITCH_STATUS_SUCCESS; + } + + return SWITCH_STATUS_FALSE; } }