From: gregor herrmann Date: Thu, 9 Jul 2020 18:09:41 +0000 (+0200) Subject: Gst.Bin.add() wants only one argument X-Git-Url: https://git.toastfreeware.priv.at/toast/stream2beamer.git/commitdiff_plain/08c82709e268e2638f8e73294627d0ff1e5fa807?ds=inline Gst.Bin.add() wants only one argument add elements separately. yes this is surprising. --- diff --git a/lagarde.py b/lagarde.py index 08c37b0..29cb085 100755 --- a/lagarde.py +++ b/lagarde.py @@ -73,7 +73,9 @@ class Lagarde: q = Gst.ElementFactory.make('queue') conv = Gst.ElementFactory.make('videoconvert') sink = Gst.ElementFactory.make('autovideosink') - self.pipe.add(q, conv, sink) + self.pipe.add(q) + self.pipe.add(conv) + self.pipe.add(sink) self.pipe.sync_children_states() pad.link(q.get_static_pad('sink')) q.link(conv) @@ -83,7 +85,10 @@ class Lagarde: conv = Gst.ElementFactory.make('audioconvert') resample = Gst.ElementFactory.make('audioresample') sink = Gst.ElementFactory.make('autoaudiosink') - self.pipe.add(q, conv, resample, sink) + self.pipe.add(q) + self.pipe.add(conv) + self.pipe.add(resample) + self.pipe.add(sink) self.pipe.sync_children_states() pad.link(q.get_static_pad('sink')) q.link(conv)