diff --git a/src/Camera/main.js b/src/Camera/main.js index b31e911a..3e0ebcaa 100644 --- a/src/Camera/main.js +++ b/src/Camera/main.js @@ -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); diff --git a/src/Screencast/main.js b/src/Screencast/main.js index dc110756..450200e7 100644 --- a/src/Screencast/main.js +++ b/src/Screencast/main.js @@ -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);