From e85e8d8c31588da946d181f1a852e95ebd35c1f8 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Sun, 15 Mar 2026 23:13:20 +0100 Subject: [PATCH] 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. --- src/modules/module-rtp-sink.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/modules/module-rtp-sink.c b/src/modules/module-rtp-sink.c index eba3aa3e6..0c1a3d188 100644 --- a/src/modules/module-rtp-sink.c +++ b/src/modules/module-rtp-sink.c @@ -180,10 +180,9 @@ struct impl { struct spa_ratelimit rate_limit; - unsigned int do_disconnect:1; + unsigned int do_disconnect_core:1; char *ifname; - char *session_name; uint32_t ttl; bool mcast_loop; uint32_t dscp; @@ -458,7 +457,7 @@ static void impl_destroy(struct impl *impl) if (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); if (impl->rtp_fd != -1) { @@ -470,7 +469,6 @@ static void impl_destroy(struct impl *impl) pw_properties_free(impl->props); free(impl->ifname); - free(impl->session_name); free(impl); } @@ -643,7 +641,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) PW_KEY_REMOTE_NAME, str, NULL), 0); - impl->do_disconnect = true; + impl->do_disconnect_core = true; } if (impl->core == NULL) { res = -errno;