From 17d6d7b0b1c372e0a603c8269f65165b6225b7a8 Mon Sep 17 00:00:00 2001 From: Frank Krick Date: Sat, 16 Aug 2025 21:50:45 -0400 Subject: [PATCH] formatting --- src/modules/module-filter-chain.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/modules/module-filter-chain.c b/src/modules/module-filter-chain.c index e775b885d..7a2d0fb6a 100644 --- a/src/modules/module-filter-chain.c +++ b/src/modules/module-filter-chain.c @@ -1227,7 +1227,8 @@ static void capture_process(void *d) } } -static int apply_props(struct spa_loop *loop, bool async, uint32_t seq, const void *data, size_t size, void *user_data) +static int apply_props(struct spa_loop *loop, bool async, uint32_t seq, + const void *data, size_t size, void *user_data) { const struct impl *impl = user_data; const struct spa_pod *props = data; @@ -1640,14 +1641,14 @@ static void control_state_changed(void *data, enum pw_stream_state old, switch (state) { case PW_STREAM_STATE_PAUSED: - pw_stream_flush(impl->control, false); - break; + pw_stream_flush(impl->control, false); + break; case PW_STREAM_STATE_ERROR: - pw_log_info("module %p: error: %s", impl, error); - break; + pw_log_info("module %p: error: %s", impl, error); + break; case PW_STREAM_STATE_STREAMING: default: - break; + break; } return; } @@ -2133,13 +2134,13 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) &core_events, impl); if (pw_properties_get(impl->control_props, "enabled") == NULL) { - impl->control_stream_active = false; - } else if (strcmp(pw_properties_get(impl->control_props, "enabled"), "true") - == 0) { - impl->control_stream_active = true; - } else if (strcmp(pw_properties_get(impl->control_props, "enabled"), "false") - == 0) { - impl->control_stream_active = false; + impl->control_stream_active = false; + } else if (strcmp(pw_properties_get( + impl->control_props, "enabled"), "true") == 0) { + impl->control_stream_active = true; + } else if (strcmp(pw_properties_get( + impl->control_props, "enabled"), "false") == 0) { + impl->control_stream_active = false; } setup_streams(impl);