aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/audio.c b/src/audio.c
index f97943400..ce62df46d 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -301,9 +301,7 @@ int openAudioDevice(const struct audio_format *audioFormat)
if (!audioOutputArray)
return -1;
- if (audioFormat == NULL)
- audio_format_clear(&input_audio_format);
- else
+ if (audioFormat != NULL)
input_audio_format = *audioFormat;
syncAudioDeviceStates();