From 6e79dd6046c64c7f3db0e3f9ffa375cbb9c5fccb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 30 Oct 2012 00:05:24 +0100 Subject: [PATCH] (OpenSL) Fixed fall-through in sl_init --- audio/opensl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/opensl.c b/audio/opensl.c index d69be72e4e..c5bd2fcb15 100644 --- a/audio/opensl.c +++ b/audio/opensl.c @@ -169,6 +169,8 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency) GOTO_IF_FAIL(SLObjectItf_GetInterface(sl->buffer_queue_object, SL_IID_PLAY, &sl->player)); GOTO_IF_FAIL(SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_PLAYING)); + return sl; + error: RARCH_ERR("Couldn't initialize OpenSL ES driver, error code: [%d].\n", (int)res); sl_free(sl);