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 12:34:24 -0400 |
commit | 526a0081a0f247c6e4ac1908c0e36ef3787c67d0 (patch) | |
tree | f3a6d066f9aeb0b327aabcc8e07aff78a4283d21 /formats/format_vox.c | |
parent | 08dc126b38e8a98295c9e41cb749249a05533200 (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_vox.c')
-rw-r--r-- | formats/format_vox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/formats/format_vox.c b/formats/format_vox.c index e4d1e378b..26d4169e1 100644 --- a/formats/format_vox.c +++ b/formats/format_vox.c @@ -49,9 +49,9 @@ static struct ast_frame *vox_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", |