Skip to content

Commit

Permalink
minor changes:
Browse files Browse the repository at this point in the history
Workaround as suggested by @Diego-Ivan
Demo functions as expected
  • Loading branch information
BharatAtbrat committed Oct 9, 2024
1 parent 0529cbc commit 8934253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Screencast/main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 8934253

Please sign in to comment.