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/codec_util.vala | |
parent | 3880628de4785db4c0a03a79a0c486507fe9b1a8 (diff) | |
download | dino-5d85b6cdb0165d863aadd25d9a73707b8f5cc83e.tar.gz dino-5d85b6cdb0165d863aadd25d9a73707b8f5cc83e.zip |
Handle non-existant call support
Diffstat (limited to 'plugins/rtp/src/codec_util.vala')
-rw-r--r-- | plugins/rtp/src/codec_util.vala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/rtp/src/codec_util.vala b/plugins/rtp/src/codec_util.vala index 7537c11d..6a2438f1 100644 --- a/plugins/rtp/src/codec_util.vala +++ b/plugins/rtp/src/codec_util.vala @@ -225,6 +225,7 @@ public class Dino.Plugins.Rtp.CodecUtil { } public string? get_encode_element_name(string media, string? codec) { + if (!is_element_supported(get_pay_element_name(media, codec))) return null; foreach (string candidate in get_encode_candidates(media, codec)) { if (is_element_supported(candidate)) return candidate; } |