Fix crash with -video none, nw

This commit is contained in:
therealmogminer@gmail.com 2016-04-18 13:13:09 +02:00
parent 6db5aa2322
commit 8a07dafbaf

View File

@ -289,7 +289,10 @@ void windows_osd_interface::build_slider_list()
void windows_osd_interface::add_audio_to_recording(const INT16 *buffer, int samples_this_frame)
{
win_window_info *window = win_window_list; // We only record on the first window
window->m_renderer->add_audio_to_recording(buffer, samples_this_frame);
if (window != nullptr && window->m_renderer != nullptr)
{
window->m_renderer->add_audio_to_recording(buffer, samples_this_frame);
}
}
//============================================================