Browse Source

TT#64300 don't attempt to transcode to an unsupported codec

Change-Id: Ib4bad65472139f214bbb3896c1f9df29cc8e140e
changes/42/32142/1
Richard Fuchs 7 years ago
parent
commit
98819573ab
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      daemon/codec.c

+ 2
- 1
daemon/codec.c View File

@ -653,7 +653,8 @@ next:
// if the sink does not support DTMF but we can receive it, we must transcode
// DTMF event packets to PCM. this requires all codecs to be transcoded to the
// sink's preferred destination codec.
if ((!transcode_dtmf && dtmf_payload_type == -1) || !pref_dest_codec)
if ((!transcode_dtmf && dtmf_payload_type == -1) || !pref_dest_codec
|| !handler->source_pt.codec_def || !pref_dest_codec->codec_def)
__make_passthrough_ssrc(handler);
else
__make_transcoder(handler, pref_dest_codec, output_transcoders, dtmf_payload_type);


Loading…
Cancel
Save