Revert "element: set pads need-parent flag to false when removing"
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 20 Feb 2015 21:22:23 +0000 (16:22 -0500)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 20 Feb 2015 21:22:23 +0000 (16:22 -0500)
commitf9baff11c86c7b4645b5d6a39dec6d1f9dc4bac4
treea5adc4ea362cb8cfed1652e3f0c3a1715bc79033
parent0ee2183aa5182f72390ebeddadd858929fb2e748
Revert "element: set pads need-parent flag to false when removing"

This reverts commit 1911554cff2c4a11772b541a8215a80c728b1097.

This breaks the functionality of GST_PAD_FLAG_NEED_PARENT, the reason for this
flag is that if a pad is removed from a running element, you don't want
functions (such as chain or event) to be called on the pad without a parent set.
This can happen if you remove a request or sometimes pad from a running element.

I don't see the code that caused this in tsdemux, but if it needs to unset
the flag on remove, it should do it itself and then make sure that the parent
exists in any pad function.
gst/gstelement.c
tests/check/gst/gstelement.c