From 79795b837804221d8d8f72aa8348aa75fc330cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 3 Feb 2023 04:50:10 +0000 Subject: [PATCH] ao_pipewire: print stream states as string --- audio/out/ao_pipewire.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index cf3cda7bf1..f40a8abd8f 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -218,7 +218,8 @@ static void on_param_changed(void *userdata, uint32_t id, const struct spa_pod * static void on_state_changed(void *userdata, enum pw_stream_state old, enum pw_stream_state state, const char *error) { struct ao *ao = userdata; - MP_DBG(ao, "Stream state changed: old_state=%d state=%d error=%s\n", old, state, error); + MP_DBG(ao, "Stream state changed: old_state=%s state=%s error=%s\n", + pw_stream_state_as_string(old), pw_stream_state_as_string(state), error); if (state == PW_STREAM_STATE_ERROR) { MP_WARN(ao, "Stream in error state, trying to reload...\n");