Now it works :-)
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 May 2021 21:05:06 +0000 (23:05 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 May 2021 21:05:06 +0000 (23:05 +0200)
lagarde.py

index ccbdbf1e616a7b1232bbf45943907d2e2b86d874..c33b912339ac13742de2383f6476b6127969c5c1 100755 (executable)
@@ -207,7 +207,6 @@ class WebRTCClient:
                 self.pipe.add(capsfilter)
                 self.pipe.add(flmux)
                 self.pipe.add(sink)
                 self.pipe.add(capsfilter)
                 self.pipe.add(flmux)
                 self.pipe.add(sink)
-                self.pipe.sync_children_states()
 
                 q_pad_sink = q.get_static_pad('sink')
                 assert q_pad_sink
 
                 q_pad_sink = q.get_static_pad('sink')
                 assert q_pad_sink
@@ -228,6 +227,7 @@ class WebRTCClient:
                 ok = flmux.link(sink)
                 assert ok
                 self.pipe.set_state(Gst.State.PLAYING)
                 ok = flmux.link(sink)
                 assert ok
                 self.pipe.set_state(Gst.State.PLAYING)
+                self.pipe.sync_children_states()
                 #print(dir(Gst.DebugGraphDetails))
                 #Gst.debug_bin_to_dot_data(element, Gst.DebugGraphDetails.ALL)
 
                 #print(dir(Gst.DebugGraphDetails))
                 #Gst.debug_bin_to_dot_data(element, Gst.DebugGraphDetails.ALL)