commit 626a9880e45d4d5e7380162f63ec4f7eaf30a0b1 parent 12aabfe54a62fa1bde142de980849a1ab94b22f3 Author: sin <sin@2f30.org> Date: Tue, 30 Dec 2014 17:48:10 +0000 Bomb out if we cannot initialize the resampler Diffstat:
M | mp3.c | | | 3 | ++- |
M | vorbis.c | | | 3 | ++- |
M | wav.c | | | 3 | ++- |
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/mp3.c b/mp3.c @@ -44,7 +44,8 @@ mp3open(const char *name) goto err0; } - initresamplers(rate); + if (initresamplers(rate) < 0) + goto err0; return 0; err0: diff --git a/vorbis.c b/vorbis.c @@ -34,7 +34,8 @@ vorbisopen(const char *name) goto err0; } - initresamplers(vi->rate); + if (initresamplers(vi->rate) < 0) + goto err0; return 0; diff --git a/wav.c b/wav.c @@ -51,7 +51,8 @@ wavopen(const char *name) goto err0; } - initresamplers(sfinfo.samplerate); + if (initresamplers(sfinfo.samplerate) < 0) + goto err0; return 0; err0: