formatting

This commit is contained in:
Frank Krick 2025-08-16 21:50:45 -04:00
parent 7df3bf48ce
commit 17d6d7b0b1

View file

@ -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);