From: Paul Brossier Date: Sun, 26 Feb 2017 22:38:35 +0000 (+0100) Subject: src/io/source_wavread.c: set error message in seek if pos < 0 X-Git-Tag: 0.4.5~91 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=2296ffbfd85b62393bb1af8a5a52fa5488e98dc0 src/io/source_wavread.c: set error message in seek if pos < 0 --- diff --git a/src/io/source_wavread.c b/src/io/source_wavread.c index 7e3c212e..2b7f8116 100644 --- a/src/io/source_wavread.c +++ b/src/io/source_wavread.c @@ -408,6 +408,7 @@ uint_t aubio_source_wavread_get_channels(aubio_source_wavread_t * s) { uint_t aubio_source_wavread_seek (aubio_source_wavread_t * s, uint_t pos) { uint_t ret = 0; if ((sint_t)pos < 0) { + AUBIO_ERR("source_wavread: could not seek %s at %d (seeking position should be >= 0)\n", s->path, pos); return AUBIO_FAIL; } ret = fseek(s->fid, s->seek_start + pos * s->blockalign, SEEK_SET);