oss: evaluate the oss_open() return value properly

It returns bool, not int.
This commit is contained in:
Max Kellermann 2009-01-16 16:04:19 +01:00
parent b12b5130c9
commit 106bfaa726
1 changed files with 1 additions and 1 deletions

View File

@ -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) {