From 8934253cc299a002501e6c8c173eb2f780d1a7a2 Mon Sep 17 00:00:00 2001 From: Bharat Date: Wed, 9 Oct 2024 22:00:30 +0530 Subject: [PATCH] minor changes: Workaround as suggested by @Diego-Ivan Demo functions as expected --- src/Screencast/main.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Screencast/main.vala b/src/Screencast/main.vala index 9702e4d3..7f0bb496 100644 --- a/src/Screencast/main.vala +++ b/src/Screencast/main.vala @@ -42,7 +42,6 @@ async void start_screencast_session (Xdp.Portal portal, Xdp.Parent parent) throw uint node_id = streams.get_child_value (0).get_child_value (0).get_uint32 (); if (node_id == 0) { throw new MessageError.FAILED (@"No available node"); - // stderr.printf ("No available node id\n"); } source.set_property ("path", node_id); @@ -77,7 +76,8 @@ async void on_button_clicked () { } public void main (string[] args) { - // Gst.init (ref args); + unowned string[] arguments = null; + Gst.init (ref arguments); portal = new Xdp.Portal (); parent = Xdp.parent_new_gtk (workbench.window); output = (Gtk.Picture) workbench.builder.get_object ("output");