frontends (tools/webrtc): fix SINKS_APP condition check.

This commit is contained in:
Goffi 2023-11-03 15:32:17 +01:00
commit 6b26dcedfa

View file

@ -630,7 +630,7 @@ class WebRTC:
remote_video_sink.set_property("sync", True)
remote_video_sink.connect("new-sample", self.appsink_data.remote_video_cb)
self.pipeline.add(remote_video_sink)
if self.sinks == SINKS_AUTO:
elif self.sinks == SINKS_AUTO:
compositor = self.pipeline.get_by_name("compositor")
sink1_pad = compositor.get_static_pad("sink_1")