diff --git a/formats/format_pcm.c b/formats/format_pcm.c index 80905cdbf3..7a1e98b7a7 100644 --- a/formats/format_pcm.c +++ b/formats/format_pcm.c @@ -207,6 +207,7 @@ static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence) return res; left -= res; } + return offset; } /* fall through */ default: diff --git a/formats/format_pcm_alaw.c b/formats/format_pcm_alaw.c index 8852467269..811a6ef6a6 100644 --- a/formats/format_pcm_alaw.c +++ b/formats/format_pcm_alaw.c @@ -282,6 +282,7 @@ static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence) return res; left -= res; } + return offset; } /* fall through */ default: