diff options
author | fiaxh <git@lightrise.org> | 2021-04-17 14:50:31 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-04-29 16:13:25 +0200 |
commit | 5d85b6cdb0165d863aadd25d9a73707b8f5cc83e (patch) | |
tree | a8e2dd368eaadd6a565a009c9e06cb3160fe16c7 /plugins/rtp/src/module.vala | |
parent | 3880628de4785db4c0a03a79a0c486507fe9b1a8 (diff) | |
download | dino-5d85b6cdb0165d863aadd25d9a73707b8f5cc83e.tar.gz dino-5d85b6cdb0165d863aadd25d9a73707b8f5cc83e.zip |
Handle non-existant call support
Diffstat (limited to 'plugins/rtp/src/module.vala')
-rw-r--r-- | plugins/rtp/src/module.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/rtp/src/module.vala b/plugins/rtp/src/module.vala index 52cc1880..13a21cd8 100644 --- a/plugins/rtp/src/module.vala +++ b/plugins/rtp/src/module.vala @@ -64,13 +64,13 @@ public class Dino.Plugins.Rtp.Module : JingleRtp.Module { } private async bool is_payload_supported(string media, JingleRtp.PayloadType payload_type) { - string codec = CodecUtil.get_codec_from_payload(media, payload_type); + string? codec = CodecUtil.get_codec_from_payload(media, payload_type); if (codec == null) return false; if (unsupported_codecs.contains(codec)) return false; if (supported_codecs.contains(codec)) return true; - string encode_element = codec_util.get_encode_element_name(media, codec); - string decode_element = codec_util.get_decode_element_name(media, codec); + string? encode_element = codec_util.get_encode_element_name(media, codec); + string? decode_element = codec_util.get_decode_element_name(media, codec); if (encode_element == null || decode_element == null) { debug("No suitable encoder or decoder found for %s", codec); unsupported_codecs.add(codec); |