Commit 07c9b627 authored by Max Kellermann's avatar Max Kellermann

audio: don't clear input_audio_format on openAudioDevice(NULL)

Commit 80a2c937 broke resume after pause: it cleared the input_audio_format when it attempted to simplify a complicated expression. Don't clear it, just assign input_audio_format if a new format was specified.
parent 5ea2e198
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment