aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/oss_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output/oss_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c
index 175aace1a..cdab24fbd 100644
--- a/src/output/oss_plugin.c
+++ b/src/output/oss_plugin.c
@@ -552,7 +552,7 @@ oss_playAudio(void *data, const char *playChunk, size_t size)
ssize_t ret;
/* reopen the device since it was closed by dropBufferedAudio */
- if (od->fd < 0 && oss_open(od) < 0)
+ if (od->fd < 0 && !oss_open(od))
return false;
while (size > 0) {