funnel: Fix racy state change
authorStian Selnes <stian@pexip.com>
Mon, 21 Sep 2015 11:58:51 +0000 (13:58 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 24 Sep 2015 10:14:57 +0000 (12:14 +0200)
commit2c60b7eb1fc8851296e7bbb209663bb0c0e53f21
treee107207acc73c2a69619567b91a050f50d417331
parent0fbf1d3eb7feaa753cf1d0ec03546f854dd1f037
funnel: Fix racy state change

Iterator may need to be resynced, for instance if pads are released
during state change.

got_eos should be protected by the object lock of the element, not of
the pad, as is the case throughout the rest of the funnel code.

https://bugzilla.gnome.org/show_bug.cgi?id=755343
plugins/elements/gstfunnel.c
tests/check/elements/funnel.c