Browse Source

TT#79601 fix possible crash when injecting DTMF

Change-Id: I3bfdd7085d193a4e1b6719313b64ed70c1dca7a8
changes/08/39708/1
Richard Fuchs 6 years ago
parent
commit
2ef93af892
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      daemon/dtmf.c

+ 3
- 1
daemon/dtmf.c View File

@ -268,8 +268,10 @@ const char *dtmf_inject(struct call_media *media, int code, int volume, int dura
struct codec_handler *ch = codec_handler_get(media, pt);
if (!ch)
return "No matching codec handler";
if (ch->output_handler) // context switch if we have multiple inputs going to one output
if (ch->output_handler && ch->output_handler->ssrc_hash) // context switch if we have multiple inputs going to one output
ch = ch->output_handler;
if (!ch->ssrc_hash)
return "No suitable codec handler present";
struct codec_ssrc_handler *csh = get_ssrc(ssrc_in->parent->h.ssrc, ch->ssrc_hash);
if (!csh)
return "No matching codec SSRC handler";


Loading…
Cancel
Save