mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-02 05:16:33 +00:00
Fix segfault.
This commit is contained in:
parent
953b5daf0a
commit
a082ec5251
2
ssnes.c
2
ssnes.c
@ -1338,7 +1338,7 @@ static void check_input_rate(void)
|
||||
|
||||
static inline void flush_rewind_audio(void)
|
||||
{
|
||||
if (g_extern.frame_is_reverse) // We just rewound. Flush rewind audio buffer.
|
||||
if (g_extern.frame_is_reverse && g_extern.audio_active) // We just rewound. Flush rewind audio buffer.
|
||||
{
|
||||
g_extern.audio_active = audio_flush(g_extern.audio_data.rewind_buf + g_extern.audio_data.rewind_ptr,
|
||||
g_extern.audio_data.rewind_size - g_extern.audio_data.rewind_ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user