osmo-gapk: fix I/O count check condition

The stdin / stdout operation was broken by a new check condition,
introduced by the 15fa605576a81803c57a144231e9e9720aa133a1.
This commit is contained in:
Vadim Yanitskiy 2017-09-15 19:17:21 +04:30
parent 9d2b15dc8a
commit 10076f0acc
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ check_options(struct gapk_state *gs)
if (gs->opts.alsa_out)
sink_count++;
if (src_count != 1 || sink_count != 1) {
if (src_count > 1 || sink_count > 1) {
LOGP(DAPP, LOGL_ERROR, "You have to decide on "
"a single input and a single output\n");
return -EINVAL;