File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments