mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
Fix crash with -video none, nw
This commit is contained in:
parent
6db5aa2322
commit
8a07dafbaf
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//============================================================
|
||||
|
Loading…
Reference in New Issue
Block a user