Fix potential crash in video calls
This commit is contained in:
parent
0521f50146
commit
df0013e3f4
|
@ -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("width", out width);
|
||||||
caps.get_structure(0).get_int("height", out height);
|
caps.get_structure(0).get_int("height", out height);
|
||||||
debug("Input resolution changed: %ix%i", width, height);
|
debug("Input resolution changed: %ix%i", 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);
|
resolution_changed(width, height);
|
||||||
|
return Source.REMOVE;
|
||||||
|
});
|
||||||
last_input_caps = caps;
|
last_input_caps = caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue