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 ab8b7fb228)
mr13.5
Richard Fuchs 1 month ago
parent 2a358af600
commit a6cb6daf04

@ -2004,13 +2004,15 @@ struct ssrc_entry_call *__hunt_ssrc_ctx(uint32_t ssrc, struct ssrc_entry_call *l
/* must be called with ps->lock held or call->master_lock held in W */
void __unkernelize(struct packet_stream *p, const char *reason) {
bool no_supp = PS_CLEAR(p, NO_KERNEL_SUPPORT);
if (!p->selected_sfd)
return;
if (!PS_ISSET(p, 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(&p->selected_sfd->socket.local),
reason);
@ -2020,7 +2022,6 @@ void __unkernelize(struct packet_stream *p, const char *reason) {
}
PS_CLEAR(p, KERNELIZED);
PS_CLEAR(p, NO_KERNEL_SUPPORT);
}

Loading…
Cancel
Save