Skip to content

Commit

Permalink
Fix JS Camera and Screencast demos
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Sep 23, 2024
1 parent b3982bb commit 31fa171
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/Camera/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ async function handleCamera() {
source.link(queue);
queue.link(glsinkbin);

const paintable = new GObject.Value();
paintable_sink.get_property("paintable", paintable);
output.paintable = paintable.get_object();
const paintable = paintable_sink.get_property("paintable");
output.paintable = paintable;

// Start the pipeline
pipeline.set_state(Gst.State.PLAYING);
Expand Down
5 changes: 2 additions & 3 deletions src/Screencast/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ async function startScreencastSession() {
source.link(queue);
queue.link(glsinkbin);

const paintable = new GObject.Value();
paintable_sink.get_property("paintable", paintable);
output.paintable = paintable.get_object();
const paintable = paintable_sink.get_property("paintable");
output.paintable = paintable;

// Start the pipeline
pipeline.set_state(Gst.State.PLAYING);
Expand Down

0 comments on commit 31fa171

Please sign in to comment.