diff options
Diffstat (limited to '')
-rw-r--r-- | src/output_thread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/output_thread.c b/src/output_thread.c index f03520013..825dfa5f5 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -62,6 +62,11 @@ static void ao_play(struct audio_output *ao) convertAudioFormat(ao, &data, &size); ao->result = ao->plugin->play(ao->data, data, size); + if (!ao->result) { + ao->plugin->close(ao->data); + ao->open = false; + } + ao_command_finished(ao); } |