From 4ef50db3e581016365087759d5af8649e37ab8a7 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 2 Feb 2022 21:37:05 +0100 Subject: Various call UI/UX improvements --- plugins/rtp/src/plugin.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/rtp') diff --git a/plugins/rtp/src/plugin.vala b/plugins/rtp/src/plugin.vala index 6d6da79a..0e519b37 100644 --- a/plugins/rtp/src/plugin.vala +++ b/plugins/rtp/src/plugin.vala @@ -285,7 +285,7 @@ public class Dino.Plugins.Rtp.Plugin : RootInterface, VideoCallPlugin, Object { Gst.deinit(); } - public bool supports(string media) { + public bool supports(string? media) { if (!codec_util.is_element_supported("rtpbin")) return false; if (media == "audio") { @@ -310,6 +310,7 @@ public class Dino.Plugins.Rtp.Plugin : RootInterface, VideoCallPlugin, Object { } public Gee.List get_devices(string media, bool incoming) { + if (media == "video" && !incoming) { return get_video_sources(); } -- cgit v1.2.3-70-g09d2