From 8415fa525f7e2b87d896e7c2201db11b06d365e4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 17 Jan 2022 14:47:27 +0100 Subject: [PATCH] pw-cat: print "monitor" when recording from a sink --- src/tools/pw-cat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tools/pw-cat.c b/src/tools/pw-cat.c index b2d4a0034..cbc2aa7ea 100644 --- a/src/tools/pw-cat.c +++ b/src/tools/pw-cat.c @@ -1906,9 +1906,10 @@ int main(int argc, char *argv[]) spa_list_for_each(target, &data.targets, link) { if (target->type != TARGET_TYPE_SINK) continue; - printf("%s\t%"PRIu32": sink description=\"%s\" prio=%d\n", - target == target_default ? "*" : "", - target->id, target->desc, target->prio); + printf("%s\t%"PRIu32": %s description=\"%s\" prio=%d\n", + target == target_default ? "*" : "", + target->id, data.mode == mode_record ? "monitor" : "sink", + target->desc, target->prio); } spa_list_for_each(target, &data.targets, link) { if (target->type != TARGET_TYPE_STREAM)