]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5242
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 29 Mar 2013 15:43:12 +0000 (10:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 29 Mar 2013 15:43:12 +0000 (10:43 -0500)
src/mod/formats/mod_shout/mod_shout.c

index e3fda4bef9b1cde2231a52f7acbc5b3a8766b90b..b11718488fecf6fac3064ceeb1b2a2b73a4a8719 100644 (file)
@@ -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;
        }
 }