summaryrefslogtreecommitdiff
path: root/formats/format_vox.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-05-02 12:34:24 -0400
committerSean Bright <sean.bright@gmail.com>2017-05-02 11:36:20 -0500
commit675e058e7794f15a4729093a165a0a66abb5d9f9 (patch)
tree2063181acb593e7240eaf8935e51dbe6522b5ba1 /formats/format_vox.c
parentdc948163cace1e71a8cbb069549a74ebf15b793c (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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/formats/format_vox.c b/formats/format_vox.c
index 195714c6f..c3da4ab94 100644
--- a/formats/format_vox.c
+++ b/formats/format_vox.c
@@ -47,9 +47,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",