From 73d4195b3ca9534c1130bc36a60c1f2458e7f354 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 20 Dec 2024 08:23:41 -0400 Subject: [PATCH] MT#61368 add __medias_unconfirm helper Change-Id: I330cf729d5a216aef79dd273ecb2089398f5e244 --- daemon/call.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 580a67b18..13af61366 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2651,6 +2651,12 @@ static void __update_init_medias(const medias_q *medias, enum ng_opmode opmode) __update_init_subscribers(l->data, NULL, NULL, opmode); } +/* called with call->master_lock held in W */ +static void __medias_unconfirm(medias_q *medias, const char *reason) { + for (auto_iter(l, medias->head); l; l = l->next) + __media_unconfirm(l->data, reason); +} + __attribute__((nonnull(1, 3))) static void __call_monologue_init_from_flags(struct call_monologue *ml, struct call_monologue *other_ml, sdp_ng_flags *flags)