From be9caa37c7492b9a0e33164e066b974b90c4ae07 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 --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index f548ac1cf..c07455426 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1032,7 +1032,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