mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-01 21:11:04 +00:00
rarch_audio_flush - prevent segfault if g_extern.audio_data.data
is NULL
This commit is contained in:
parent
41f9a47a01
commit
aaee1a016f
@ -475,7 +475,7 @@ bool rarch_audio_flush(const int16_t *data, size_t samples)
|
||||
|
||||
if (g_extern.is_paused || g_extern.audio_data.mute)
|
||||
return true;
|
||||
if (!g_extern.audio_active)
|
||||
if (!g_extern.audio_active || !g_extern.audio_data.data)
|
||||
return false;
|
||||
|
||||
RARCH_PERFORMANCE_INIT(audio_convert_s16);
|
||||
|
Loading…
Reference in New Issue
Block a user