From 2a9524c5f2b4c8dda00bb13607bc2694357a3dc6 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 7 Jul 2026 12:17:17 -0400 Subject: [PATCH] MT#55283 unconditionally clear no-support flag A stream that needs to be unkernelized that wasn't actually kernelized due to lack of support or information still needs to have the flag reset so that it can retried. Change-Id: I7de17236d382d4f4dbfc3225c37688769cc9c8ad (cherry picked from commit ab8b7fb228935d51f3d68e4476950afa41d91c0e) --- daemon/media_socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/media_socket.c b/daemon/media_socket.c index f0c6b54a0..e904b2de5 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -2084,12 +2084,14 @@ struct ssrc_entry_call *__hunt_ssrc_ctx(uint32_t ssrc, struct ssrc_entry_call *l void __unkernelize(struct packet_stream *p, const char *reason) { stream_fd *sfd = p->selected_sfd; + bool no_supp = PS_CLEAR(p, NO_KERNEL_SUPPORT); + if (!sfd) return; if (!sfd->kernelized) return; - if (kernel.is_open && !PS_ISSET(p, NO_KERNEL_SUPPORT)) { + if (kernel.is_open && !no_supp) { ilog(LOG_INFO, "Removing media stream from kernel: local %s (%s)", endpoint_print_buf(&sfd->socket.local), reason); @@ -2100,7 +2102,6 @@ void __unkernelize(struct packet_stream *p, const char *reason) { } sfd->kernelized = false; - PS_CLEAR(p, NO_KERNEL_SUPPORT); }