Skip to content

Commit 31fa171

Browse files
committed
Fix JS Camera and Screencast demos
For workbenchdev/Workbench#984
1 parent b3982bb commit 31fa171

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Camera/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ async function handleCamera() {
6363
source.link(queue);
6464
queue.link(glsinkbin);
6565

66-
const paintable = new GObject.Value();
67-
paintable_sink.get_property("paintable", paintable);
68-
output.paintable = paintable.get_object();
66+
const paintable = paintable_sink.get_property("paintable");
67+
output.paintable = paintable;
6968

7069
// Start the pipeline
7170
pipeline.set_state(Gst.State.PLAYING);

src/Screencast/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ async function startScreencastSession() {
8282
source.link(queue);
8383
queue.link(glsinkbin);
8484

85-
const paintable = new GObject.Value();
86-
paintable_sink.get_property("paintable", paintable);
87-
output.paintable = paintable.get_object();
85+
const paintable = paintable_sink.get_property("paintable");
86+
output.paintable = paintable;
8887

8988
// Start the pipeline
9089
pipeline.set_state(Gst.State.PLAYING);

0 commit comments

Comments
 (0)