aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-07-09 15:32:53 +0200
committerMarvin W <git@larma.de>2023-07-09 15:32:53 +0200
commit8c8c2dc4b0e08a2e6d73b45fba795d462595418f (patch)
treedfee7a39aa4ecc39f11386db69cd5866753acecf /plugins
parent7357b7ecfbaa6bd0b9aeacb6d1551fd02b3f0f20 (diff)
downloaddino-8c8c2dc4b0e08a2e6d73b45fba795d462595418f.tar.gz
dino-8c8c2dc4b0e08a2e6d73b45fba795d462595418f.zip
Fix potential crash in video calls
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rtp/src/video_widget.vala6
1 files changed, 5 insertions, 1 deletions
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;
}