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.
This commit is contained in:
parent
5ea2e198f9
commit
07c9b62764
@ -301,9 +301,7 @@ int openAudioDevice(const struct audio_format *audioFormat)
|
|||||||
if (!audioOutputArray)
|
if (!audioOutputArray)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (audioFormat == NULL)
|
if (audioFormat != NULL)
|
||||||
audio_format_clear(&input_audio_format);
|
|
||||||
else
|
|
||||||
input_audio_format = *audioFormat;
|
input_audio_format = *audioFormat;
|
||||||
|
|
||||||
syncAudioDeviceStates();
|
syncAudioDeviceStates();
|
||||||
|
Loading…
Reference in New Issue
Block a user