From 88a5e575232873828be5d6a64efcb09a4be4a6ca Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 1 Dec 2021 13:48:40 -0500 Subject: [PATCH] TT#14008 add locking for `bypass_seq` case Some functions (packet_dtmf in particular) called from the sequencer depend on upper-level locking, so make sure this happens even if we're bypassing the sequencer and do passthrough. Change-Id: I6c729c3ba8075736fd614b8c06e3415b9c9e5ca7 --- daemon/codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/codec.c b/daemon/codec.c index 06747e27e..1c2287d04 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1416,9 +1416,11 @@ static int __handler_func_sequencer(struct media_packet *mp, struct transcode_pa if (packet->bypass_seq) { // bypass sequencer + __ssrc_lock_both(mp); int ret = packet->func(ch, ch, packet, mp); if (ret != 1) __transcode_packet_free(packet); + __ssrc_unlock_both(mp); goto out_ch; }