aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-05-14 22:54:08 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-09 14:08:59 +0200
commit52a34986afa52a567fed82b4b086e16a3092c2c3 (patch)
tree17be574617b2ace0e31cc057ab1230f418a3fbf4
parent677ac164a953a90acff60e7b84b0091184f56464 (diff)
Show warning dialog on failed GTK video sink creation
-rw-r--r--plugins/rtp/src/video_widget.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/rtp/src/video_widget.vala b/plugins/rtp/src/video_widget.vala
index 82693b09..a9a95477 100644
--- a/plugins/rtp/src/video_widget.vala
+++ b/plugins/rtp/src/video_widget.vala
@@ -41,6 +41,14 @@ public class Dino.Plugins.Rtp.VideoWidget : Gtk.Bin, Dino.Plugins.VideoCallWidge
add(widget);
widget.visible = true;
} else {
+ var dialog = new Gtk.MessageDialog(null, MODAL, WARNING, OK, null);
+
+ dialog.text = "Could not create GTK video sink";
+ dialog.secondary_text = "Please install package gstreamer1.0-gtk3 or equivalent.";
+ dialog.response.connect((response_id) => {
+ dialog.close();
+ });
+ dialog.run();
warning("Could not create GTK video sink. Won't display videos.");
}
size_allocate.connect_after(after_size_allocate);