mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-01 22:42:22 +00:00
Fixes segfault when audio driver is not active.
This commit is contained in:
parent
389ed7111e
commit
6c7e53b6ce
1
Makefile
1
Makefile
@ -27,6 +27,7 @@ ifeq ($(BUILD_OPENGL), 1)
|
||||
endif
|
||||
ifeq ($(BUILD_FILTER), 1)
|
||||
OBJ += hqflt/hq.o
|
||||
OBJ += hqflt/grayscale.o
|
||||
endif
|
||||
|
||||
CFLAGS = -Wall -O3 -march=native -std=gnu99
|
||||
|
6
ssnes.c
6
ssnes.c
@ -87,8 +87,10 @@ void set_fast_forward_button(bool new_button_state)
|
||||
if (new_button_state && !old_button_state)
|
||||
{
|
||||
syncing_state = !syncing_state;
|
||||
driver.video->set_nonblock_state(driver.video_data, syncing_state);
|
||||
driver.audio->set_nonblock_state(driver.audio_data, syncing_state);
|
||||
if (video_active)
|
||||
driver.video->set_nonblock_state(driver.video_data, syncing_state);
|
||||
if (audio_active)
|
||||
driver.audio->set_nonblock_state(driver.audio_data, syncing_state);
|
||||
if (syncing_state)
|
||||
audio_chunk_size = AUDIO_CHUNK_SIZE_NONBLOCKING;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user