From b6059fd00730c1555ea1e4d5c28a77f3d2901e66 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 19 Oct 2021 12:25:46 +0200 Subject: [PATCH] stream: add some debug for commands --- src/pipewire/stream.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index ae9b40dc8..4f0675638 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -528,8 +528,12 @@ static int impl_send_command(void *object, const struct spa_command *command) { struct stream *impl = object; struct pw_stream *stream = &impl->this; + uint32_t id = SPA_NODE_COMMAND_ID(command); - switch (SPA_NODE_COMMAND_ID(command)) { + pw_log_info("%p: command %s", impl, + spa_debug_type_find_name(spa_type_node_command_id, id)); + + switch (id) { case SPA_NODE_COMMAND_Suspend: case SPA_NODE_COMMAND_Flush: case SPA_NODE_COMMAND_Pause: