From 8c8c2dc4b0e08a2e6d73b45fba795d462595418f Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 9 Jul 2023 15:32:53 +0200 Subject: Fix potential crash in video calls --- plugins/rtp/src/video_widget.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/rtp/src/video_widget.vala b/plugins/rtp/src/video_widget.vala index 20123c68..f69a2ba7 100644 --- a/plugins/rtp/src/video_widget.vala +++ b/plugins/rtp/src/video_widget.vala @@ -197,7 +197,11 @@ public class Dino.Plugins.Rtp.VideoWidget : Gtk.Widget, Dino.Plugins.VideoCallWi caps.get_structure(0).get_int("width", out width); caps.get_structure(0).get_int("height", out height); debug("Input resolution changed: %ix%i", width, height); - resolution_changed(width, height); + // Invoke signal on GTK main loop as recipients are likely to use it for doing GTK operations + Idle.add(() => { + resolution_changed(width, height); + return Source.REMOVE; + }); last_input_caps = caps; } -- cgit v1.2.3-54-g00ecf