module-raop: don't start record in state change

We first need to do the setup, which we start when setting the Format
param.

This causes the module to unload when starting pavucontrol because it
tries to start the record in the wrong state.

See #3778
This commit is contained in:
Wim Taymans 2024-01-30 15:04:01 +01:00
parent 1f40695b69
commit 565f560722

View file

@ -1521,8 +1521,6 @@ static void stream_state_changed(void *data, bool started, const char *error)
pw_impl_module_schedule_destroy(impl->module);
return;
}
if (started)
rtsp_do_record(impl);
}
static int rtsp_do_connect(struct impl *impl)