diff options
Diffstat (limited to 'src/output/mvp_plugin.c')
-rw-r--r-- | src/output/mvp_plugin.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/output/mvp_plugin.c b/src/output/mvp_plugin.c index 2bf79afad..65df5a2aa 100644 --- a/src/output/mvp_plugin.c +++ b/src/output/mvp_plugin.c @@ -272,8 +272,13 @@ mvp_output_play(void *data, const void *chunk, size_t size) ssize_t ret; /* reopen the device since it was closed by dropBufferedAudio */ - if (md->fd < 0) - mvp_output_open(md, &md->audio_format); + if (md->fd < 0) { + bool success; + + success = mvp_output_open(md, &md->audio_format); + if (!success) + return 0; + } while (true) { ret = write(md->fd, chunk, size); |