From 736101f1a2e245e32abc0b4d66f307a73b47af63 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Dec 2015 15:33:09 +0100 Subject: [PATCH] (audio_driver.c)Return true if resource already allocated --- audio/audio_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index f5978240da..592a8d73fb 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -281,7 +281,7 @@ static bool init_audio(void) /* Resource leaks will follow if audio is initialized twice. */ if (audio_driver_context_audio_data) - return false; + return true; /* Accomodate rewind since at some point we might have two full buffers. */ outsamples_max = max_bufsamples * AUDIO_MAX_RATIO *