Commit 106bfaa7 authored by Max Kellermann's avatar Max Kellermann

oss: evaluate the oss_open() return value properly

It returns bool, not int.
parent b12b5130
......@@ -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) {
......
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