Commit d0201721 authored by Max Kellermann's avatar Max Kellermann

output/Thread: keep the device open if the audio format hasn't changed

Add another condition to Reopen() which allows keeping it open.
parent e5c9f6c1
......@@ -284,7 +284,8 @@ AudioOutput::Reopen()
{
assert(open);
if (!config_audio_format.IsFullyDefined()) {
if (request.audio_format != in_audio_format &&
!config_audio_format.IsFullyDefined()) {
Close(true);
Open();
} else
......
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