Browse Source

also check for the output encoder

noticed through #941

further fix for 088c58d

Change-Id: I555d1d55d00124c75aa053c4c95abfd98d1ae44f
changes/58/37058/2
Richard Fuchs 6 years ago
parent
commit
be9caa37c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/codec.c

+ 1
- 1
daemon/codec.c View File

@ -1032,7 +1032,7 @@ static void packet_dtmf_fwd(struct codec_ssrc_handler *ch, struct transcode_pack
// this is actually a DTMF -> PCM handler // this is actually a DTMF -> PCM handler
// grab our underlying PCM transcoder // grab our underlying PCM transcoder
struct codec_ssrc_handler *output_ch = __output_ssrc_handler(ch, mp); 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; goto skip;
// init some vars // init some vars


Loading…
Cancel
Save