aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/src/module.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-04-17 14:50:31 +0200
committerfiaxh <git@lightrise.org>2021-04-29 16:13:25 +0200
commit5d85b6cdb0165d863aadd25d9a73707b8f5cc83e (patch)
treea8e2dd368eaadd6a565a009c9e06cb3160fe16c7 /plugins/rtp/src/module.vala
parent3880628de4785db4c0a03a79a0c486507fe9b1a8 (diff)
downloaddino-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.vala6
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);