From 3349403d1dde8c6a4bb0cec569bd20ebca527ed4 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 61e474982..e63dea580 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1033,7 +1033,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