From 10076f0acce2274fdb363cd69ee83becdef6d6c8 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 15 Sep 2017 19:17:21 +0430 Subject: [PATCH] osmo-gapk: fix I/O count check condition The stdin / stdout operation was broken by a new check condition, introduced by the 15fa605576a81803c57a144231e9e9720aa133a1. --- src/app_osmo_gapk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app_osmo_gapk.c b/src/app_osmo_gapk.c index 2aac0aa..729ea25 100644 --- a/src/app_osmo_gapk.c +++ b/src/app_osmo_gapk.c @@ -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;