module-rtp: Minor cleanup

* Rename do_disconnect to do_disconnect_core, since the original name
  is ambiguous (it can be interpreted as being about disconnecting
  a network socket).
* impl->session_name is not used at all, so remove it.
This commit is contained in:
Carlos Rafael Giani 2026-03-15 23:13:20 +01:00
parent 222c8753d1
commit e85e8d8c31

View file

@ -180,10 +180,9 @@ struct impl {
struct spa_ratelimit rate_limit; struct spa_ratelimit rate_limit;
unsigned int do_disconnect:1; unsigned int do_disconnect_core:1;
char *ifname; char *ifname;
char *session_name;
uint32_t ttl; uint32_t ttl;
bool mcast_loop; bool mcast_loop;
uint32_t dscp; uint32_t dscp;
@ -458,7 +457,7 @@ static void impl_destroy(struct impl *impl)
if (impl->stream) if (impl->stream)
rtp_stream_destroy(impl->stream); rtp_stream_destroy(impl->stream);
if (impl->core && impl->do_disconnect) if (impl->core && impl->do_disconnect_core)
pw_core_disconnect(impl->core); pw_core_disconnect(impl->core);
if (impl->rtp_fd != -1) { if (impl->rtp_fd != -1) {
@ -470,7 +469,6 @@ static void impl_destroy(struct impl *impl)
pw_properties_free(impl->props); pw_properties_free(impl->props);
free(impl->ifname); free(impl->ifname);
free(impl->session_name);
free(impl); free(impl);
} }
@ -643,7 +641,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
PW_KEY_REMOTE_NAME, str, PW_KEY_REMOTE_NAME, str,
NULL), NULL),
0); 0);
impl->do_disconnect = true; impl->do_disconnect_core = true;
} }
if (impl->core == NULL) { if (impl->core == NULL) {
res = -errno; res = -errno;