From cf293c224d5a673b9711922d464db9bcbae9f7df Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 4 Jan 2006 23:45:34 +0000 Subject: [PATCH] return properly after extending file git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7803 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- formats/format_pcm.c | 1 + formats/format_pcm_alaw.c | 1 + 2 files changed, 2 insertions(+) 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: