playbin: Send upstream events directly to playsink
authorSebastian Dröge <sebastian@centricular.com>
Fri, 23 Oct 2015 09:02:28 +0000 (12:02 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 23 Oct 2015 13:43:36 +0000 (16:43 +0300)
commitcfb6d6e7b44fedddeb6aa6f0fdb1189541d3d035
tree22e387b8a873c8f7ce96fd18fa26a5876aa32b80
parent1a532619fe543f6d9c8c68b33186ccd042ccefed
playbin: Send upstream events directly to playsink

Send event directly to playsink instead of letting GstBin iterate
over all sink elements. The latter might send the event multiple times
in case the SEEK causes a reconfiguration of the pipeline, as can easily
happen with adaptive streaming demuxers.

What would then happen is that the iterator would be reset, we send the
event again, and on the second time it will fail in the majority of cases
because the pipeline is still being reconfigured
gst/playback/gstplaybin2.c