decodebin: only try to expose complete groups
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 14 Jul 2015 03:03:10 +0000 (00:03 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 14 Jul 2015 03:11:59 +0000 (00:11 -0300)
commit9c2e08c54d4a9021dd915b1c8f25fc034f73aeb4
tree7dde4ddbb942ac5c2959293a5e251a99a12d5080
parent1d1bebd7692cb1412d53c5557f2b8b9475e5e4c7
decodebin: only try to expose complete groups

When switching to a new chain it might be that this new chain
is not yet ready to be exposed so check it before exposing.

Can happen with mpegts that might delay adding pads or pushing data
until it has found the PMT/PAT/PCR and that may take a while depending
on the stream.

It happened frequently with HLS:
http://vevoplaylist-live.hls.adaptive.level3.net/vevo/ch1/appleman.m3u8
gst/playback/gstdecodebin2.c