Commit a8d343e0 authored by Max Kellermann's avatar Max Kellermann

output/Thread: update in_audio_format before ReopenFilter()

parent d0201721
...@@ -288,10 +288,12 @@ AudioOutput::Reopen() ...@@ -288,10 +288,12 @@ AudioOutput::Reopen()
!config_audio_format.IsFullyDefined()) { !config_audio_format.IsFullyDefined()) {
Close(true); Close(true);
Open(); Open();
} else } else {
/* the audio format has changed, and all filters have /* the audio format has changed, and all filters have
to be reconfigured */ to be reconfigured */
in_audio_format = request.audio_format;
ReopenFilter(); ReopenFilter();
}
} }
/** /**
......
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