diff options
-rw-r--r-- | libao2/ao_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c index a79361a6a8..9d4dde4837 100644 --- a/libao2/ao_oss.c +++ b/libao2/ao_oss.c @@ -194,7 +194,7 @@ static int control(int cmd,void *arg){ if(AF_FORMAT_IS_AC3(ao_data.format)) return CONTROL_TRUE; - if ((fd = open(oss_mixer_device, O_RDONLY)) > 0) + if ((fd = open(oss_mixer_device, O_RDONLY)) != -1) { ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devs); if (devs & (1 << oss_mixer_channel)) |