mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
Fix crash with -video none, nw
This commit is contained in:
parent
6db5aa2322
commit
8a07dafbaf
@ -289,8 +289,11 @@ void windows_osd_interface::build_slider_list()
|
|||||||
void windows_osd_interface::add_audio_to_recording(const INT16 *buffer, int samples_this_frame)
|
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
|
win_window_info *window = win_window_list; // We only record on the first window
|
||||||
|
if (window != nullptr && window->m_renderer != nullptr)
|
||||||
|
{
|
||||||
window->m_renderer->add_audio_to_recording(buffer, samples_this_frame);
|
window->m_renderer->add_audio_to_recording(buffer, samples_this_frame);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
// winwindow_exit
|
// winwindow_exit
|
||||||
|
Loading…
Reference in New Issue
Block a user