Skip to content
Snippets Groups Projects
Commit a40721a9 authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Make opus_decoder_create set its error code.

parent 858468ee
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,8 @@ OpusDecoder *opus_decoder_create(opus_int32 Fs, int channels, int *error) ...@@ -132,6 +132,8 @@ OpusDecoder *opus_decoder_create(opus_int32 Fs, int channels, int *error)
return NULL; return NULL;
} }
ret = opus_decoder_init(st, Fs, channels); ret = opus_decoder_init(st, Fs, channels);
if (error)
*error = ret;
if (ret != OPUS_OK) if (ret != OPUS_OK)
{ {
opus_free(st); opus_free(st);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment