mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-29 22:25:05 +00:00
(audio_driver.c)Return true if resource already allocated
This commit is contained in:
parent
fd07b5c689
commit
736101f1a2
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user