rarch_audio_flush - prevent segfault if g_extern.audio_data.data

is NULL
This commit is contained in:
twinaphex 2014-09-30 17:08:32 +02:00
parent 41f9a47a01
commit aaee1a016f

View File

@ -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);