From 1e4a2d1970a402b97d119396cf414c3640d040f4 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 10 Oct 2009 13:55:38 +0000 Subject: don't use a references to the device file to check the current mode --- usr.bin/aucat/aucat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/aucat/aucat.c') 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 * @@ -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; } -- cgit v1.2.3