comparison libervia/frontends/tools/webrtc.py @ 4146:60d107f2178a

frontends (tools/webrtc): fix `SINKS_APP` condition check.
author Goffi <goffi@goffi.org>
date Fri, 03 Nov 2023 15:32:17 +0100
parents 970b6209526a
children 879bad48cc2d
comparison
equal deleted inserted replaced
4145:970b6209526a 4146:60d107f2178a
628 remote_video_sink.set_property("drop", True) 628 remote_video_sink.set_property("drop", True)
629 remote_video_sink.set_property("max-buffers", 1) 629 remote_video_sink.set_property("max-buffers", 1)
630 remote_video_sink.set_property("sync", True) 630 remote_video_sink.set_property("sync", True)
631 remote_video_sink.connect("new-sample", self.appsink_data.remote_video_cb) 631 remote_video_sink.connect("new-sample", self.appsink_data.remote_video_cb)
632 self.pipeline.add(remote_video_sink) 632 self.pipeline.add(remote_video_sink)
633 if self.sinks == SINKS_AUTO: 633 elif self.sinks == SINKS_AUTO:
634 compositor = self.pipeline.get_by_name("compositor") 634 compositor = self.pipeline.get_by_name("compositor")
635 635
636 sink1_pad = compositor.get_static_pad("sink_1") 636 sink1_pad = compositor.get_static_pad("sink_1")
637 637
638 local_width, local_height = self.scaled_dimensions( 638 local_width, local_height = self.scaled_dimensions(