diff options
-rw-r--r-- | src/output_control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output_control.c b/src/output_control.c index 9a240ffe4..78800794f 100644 --- a/src/output_control.c +++ b/src/output_control.c @@ -79,13 +79,13 @@ audio_output_open(struct audio_output *ao, ao->chunk = NULL; if (!ao->config_audio_format) { + if (ao->open) + audio_output_close(ao); + /* no audio format is configured: copy in->out, let the output's open() method determine the effective out_audio_format */ ao->out_audio_format = ao->in_audio_format; - - if (ao->open) - audio_output_close(ao); } ao->pipe = mp; |