From 7df3bf48ce7a9c007fe87edd9d57522fcf39b086 Mon Sep 17 00:00:00 2001 From: Frank Krick Date: Sat, 16 Aug 2025 21:43:30 -0400 Subject: [PATCH] formatting --- src/modules/module-filter-chain.c | 53 ++++++++++++++++--------------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/src/modules/module-filter-chain.c b/src/modules/module-filter-chain.c index b96e5999c..e775b885d 100644 --- a/src/modules/module-filter-chain.c +++ b/src/modules/module-filter-chain.c @@ -1670,35 +1670,38 @@ static int setup_streams(struct impl *impl) struct spa_pod_dynamic_builder b; struct spa_filter_graph *graph = impl->graph; - if (impl->control_stream_active) { - impl->control = pw_stream_new(impl->core, - "filter control", impl->control_props); - impl->control_props = NULL; - if (impl->control == NULL) - return -errno; + if (impl->control_stream_active) { + impl->control = pw_stream_new(impl->core, + "filter control", impl->control_props); + impl->control_props = NULL; + if (impl->control == NULL) + return -errno; - pw_stream_add_listener(impl->control, - &impl->control_listener, - &control_stream_events, impl); + pw_stream_add_listener(impl->control, + &impl->control_listener, + &control_stream_events, impl); - uint8_t buffer[256]; - struct spa_pod_builder bt = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer)); - const struct spa_pod *param[1]; + uint8_t buffer[256]; + struct spa_pod_builder bt = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer)); + const struct spa_pod *param[1]; - param[0] = spa_pod_builder_add_object(&bt, - SPA_TYPE_OBJECT_Format, SPA_PARAM_EnumFormat, - SPA_FORMAT_mediaType, SPA_POD_Id(SPA_MEDIA_TYPE_application), - SPA_FORMAT_mediaSubtype, SPA_POD_Id(SPA_MEDIA_SUBTYPE_control) - ); + param[0] = spa_pod_builder_add_object(&bt, + SPA_TYPE_OBJECT_Format, + SPA_PARAM_EnumFormat, + SPA_FORMAT_mediaType, + SPA_POD_Id(SPA_MEDIA_TYPE_application), + SPA_FORMAT_mediaSubtype, + SPA_POD_Id(SPA_MEDIA_SUBTYPE_control) + ); - pw_stream_connect(impl->control, - PW_DIRECTION_INPUT, - PW_ID_ANY, - PW_STREAM_FLAG_AUTOCONNECT | - PW_STREAM_FLAG_MAP_BUFFERS | - PW_STREAM_FLAG_RT_PROCESS, - param, 1); - } + pw_stream_connect(impl->control, + PW_DIRECTION_INPUT, + PW_ID_ANY, + PW_STREAM_FLAG_AUTOCONNECT | + PW_STREAM_FLAG_MAP_BUFFERS | + PW_STREAM_FLAG_RT_PROCESS, + param, 1); + } impl->capture = pw_stream_new(impl->core, "filter capture", impl->capture_props);