From f381cda7099116bcb473ad75aeac0f975b44572e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 26 Feb 2020 08:26:46 -0500 Subject: [PATCH] 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 4c8f01921..b76938d61 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -940,7 +940,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