From a40721a92e4b675c476b93e3f15d59a803ed24a0 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell <greg@xiph.org> Date: Sun, 4 Sep 2011 04:25:12 -0400 Subject: [PATCH] Make opus_decoder_create set its error code. --- src/opus_decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opus_decoder.c b/src/opus_decoder.c index ce6e9ce06..4361e5b11 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -132,6 +132,8 @@ OpusDecoder *opus_decoder_create(opus_int32 Fs, int channels, int *error) return NULL; } ret = opus_decoder_init(st, Fs, channels); + if (error) + *error = ret; if (ret != OPUS_OK) { opus_free(st); -- GitLab