summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/aucat.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-10-10 13:55:38 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-10-10 13:55:38 +0000
commit1e4a2d1970a402b97d119396cf414c3640d040f4 (patch)
tree3a0a53473bac26a7a3149b28cffd3f40a4f98e84 /usr.bin/aucat/aucat.c
parent96782ef80dd52562aa753c36cf4d4abe6b426b64 (diff)
don't use a references to the device file to check the current mode
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r--usr.bin/aucat/aucat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 792684ad3c2..bd3c8079e4b 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.71 2009/10/10 12:43:09 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.72 2009/10/10 13:55:37 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -590,8 +590,8 @@ aucat_main(int argc, char **argv)
if (quit_flag) {
break;
}
- if ((!dev_rec || dev_rec->u.io.file == NULL) &&
- (!dev_play || dev_play->u.io.file == NULL) && !n_flag) {
+ if ((dev_mix && LIST_EMPTY(&dev_mix->obuflist)) ||
+ (dev_sub && LIST_EMPTY(&dev_sub->ibuflist))) {
fprintf(stderr, "device desappeared, terminating\n");
break;
}