Add missing null pointer check

This commit is contained in:
twinaphex 2018-01-29 23:01:58 +01:00
parent 05e35bd4b1
commit 7ab992e858

View File

@ -573,7 +573,10 @@ static void audio_driver_flush(const int16_t *data, size_t samples)
runloop_get_status(&is_paused, &is_idle, &is_slowmotion,
&is_perfcnt_enable);
if (is_paused || !audio_driver_active || !audio_driver_input_data)
if ( is_paused ||
!audio_driver_active ||
!audio_driver_input_data ||
!audio_driver_output_samples_buf)
return;
convert_s16_to_float(audio_driver_input_data, data, samples,