diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-05-02 12:34:24 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-05-02 11:36:20 -0500 |
commit | 675e058e7794f15a4729093a165a0a66abb5d9f9 (patch) | |
tree | 2063181acb593e7240eaf8935e51dbe6522b5ba1 /formats/format_g729.c | |
parent | dc948163cace1e71a8cbb069549a74ebf15b793c (diff) |
cleanup: Change severity of fread short-read warning
Many sound files don't have a full frame's worth of data at EOF, so the
warning messages were a bit too noisy. So we demote them to debug
messages.
Change-Id: I6b617467d687658adca39170a81797a11cc766f6
Diffstat (limited to 'formats/format_g729.c')
-rw-r--r-- | formats/format_g729.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/formats/format_g729.c b/formats/format_g729.c index 4cefc0401..1e523062e 100644 --- a/formats/format_g729.c +++ b/formats/format_g729.c @@ -53,9 +53,9 @@ static struct ast_frame *g729_read(struct ast_filestream *s, int *whennext) if ((res = fread(s->fr.data.ptr, 1, s->fr.datalen, s->f)) != s->fr.datalen) { if (feof(s->f)) { if (res) { - ast_log(LOG_WARNING, "Incomplete frame data at end of %s file " - "(expected %d bytes, read %d)\n", - ast_format_get_name(s->fr.subclass.format), s->fr.datalen, res); + ast_debug(3, "Incomplete frame data at end of %s file " + "(expected %d bytes, read %d)\n", + ast_format_get_name(s->fr.subclass.format), s->fr.datalen, res); } } else { ast_log(LOG_ERROR, "Error while reading %s file: %s\n", |