diff options
author | Max Kellermann <max@duempel.org> | 2009-01-16 16:04:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-16 17:11:18 +0100 |
commit | 106bfaa72621c4cfb594a409f4154b6e1251dd11 (patch) | |
tree | 2b63d6f848f94212c97dd3ef5264108ce01da609 /src | |
parent | b12b5130c99603f22534aba31615386b5fc40817 (diff) | |
download | mpd-106bfaa72621c4cfb594a409f4154b6e1251dd11.tar.gz mpd-106bfaa72621c4cfb594a409f4154b6e1251dd11.tar.xz mpd-106bfaa72621c4cfb594a409f4154b6e1251dd11.zip |
oss: evaluate the oss_open() return value properly
It returns bool, not int.
Diffstat (limited to 'src')
-rw-r--r-- | src/output/oss_plugin.c | 2 |
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) { |