<div dir="ltr">Hello, <br><br>I have 2 pipes and I am dynamically adding elements (queue and shout2send) at the end of these pipes to a tee element. First pipe works OK <br><ul><li><a href="http://tinyurl.com/WorkingPipe">http://tinyurl.com/WorkingPipe</a> (demonstrating it's possible to do it this way)</li>
</ul><p>But the second pipe <br></p><ul><li><a href="http://tinyurl.com/NotWorkingPipe">http://tinyurl.com/NotWorkingPipe</a></li></ul><p> The second pipe with the same
code (dynamic adding part) doesn't work. <br></p><p>After adding e.g. bin8 element
to the tee while pipe is playing, data is coming from tee element, but they are corrupted. It looks like tee element is corrupting data.<br></p><p> So, I
recorded whole recording <a href="http://tinyurl.com/ojycb7u">http://tinyurl.com/ojycb7u</a> (bin2) and also corrupted
one (bin8) <a href="http://tinyurl.com/pwo2a47">http://tinyurl.com/pwo2a47</a> </p><p>When I set pipe to NULL state and then set to PLAYING, all tees are sending data OK, but all shout2send are disconnected and listeners are also disconnected, so this isn't way to go. <br>
</p><p>I cannot find out why this
is happening. Could you please point me on the right direction? </p><p>Here is the part of code that is responsible for dynamic adding to pipeline:</p><p><span style="font-family:courier new,monospace">sink = self.__queue.get_pad("sink")<br>
self.sink = gst.GhostPad("sink", sink)<br>self.add_pad(self.sink)<br>self.__tee_src = self.__tee.get_request_pad("src%d")<br>self.__tee_src.link(self.sink)<br>self.set_state(gst.STATE_PLAYING)<br>self.__player.pipe.set_state(gst.STATE_PLAYING)<br>
</span></p><p>Thanks!</p><p><br></p></div>