From d1ee8a9b5ff8a33f5d4e026dbdf20197bf79cc6d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 26 Feb 2020 08:26:46 -0500 Subject: [PATCH] TT#14008 also check for the output encoder noticed through #941 further fix for 088c58d Change-Id: I555d1d55d00124c75aa053c4c95abfd98d1ae44f (cherry picked from commit be9caa37c7492b9a0e33164e066b974b90c4ae07) --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index ad40e1e11..d26cec52d 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -938,7 +938,7 @@ static void packet_dtmf_fwd(struct codec_ssrc_handler *ch, struct transcode_pack // this is actually a DTMF -> PCM handler // grab our underlying PCM transcoder struct codec_ssrc_handler *output_ch = __output_ssrc_handler(ch, mp); - if (G_UNLIKELY(!ch->encoder)) + if (G_UNLIKELY(!ch->encoder || !output_ch->encoder)) goto skip; // init some vars