tsdemux: add/remove pads to flowcombiner differently due to streaming nature
authorThiago Santos <ts.santos@sisa.samsung.com>
Tue, 27 May 2014 13:21:45 +0000 (10:21 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Tue, 27 May 2014 13:29:32 +0000 (10:29 -0300)
commitc56a4d54b81a510184393506ee3ca412712c8b12
tree72c1e8b78339bca07c3f522022c199f31896088a
parent1f1bb8bbe3bfbe4b2dcd083c718002c3a395e126
tsdemux: add/remove pads to flowcombiner differently due to streaming nature

Due to mpegts streaming nature some pads are created but are only added
later to the element. This can cause a scenario where the first stream
doesn't have an available decoder (while the next ones still pending
would have) and tsdemux will fail with not-linked as the first stream
added wouldn't be linked.

To avoid this tsdemux needs to add pads to the flowcombiner
when they are created instead of only when adding them to the
element.
gst/mpegtsdemux/tsdemux.c