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 09:02:28 +0000 (12:02 +0300)
commit53f135cec7ac63b8951797568b9e8e153bd6ad2e
tree6a1afa93acb9071ff7ae0c4e7d729e583810ede5
parent04eeaef7a4f14ff2d882541f1b1ac1d4860a3537
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