ghostpad: Always get the proxypad's ghostpad via the ghostpad in the src caps change...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 18 Aug 2009 09:33:17 +0000 (11:33 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 18 Aug 2009 09:33:17 +0000 (11:33 +0200)
commita0ed1a44a54604a4efae7f926d70e00021db09b6
tree42c3ba651c388e06f49b2eeaec2adc9c071233fd
parentabafed991ed1aa33796a451ae26e64751c098c1e
ghostpad: Always get the proxypad's ghostpad via the ghostpad in the src caps change notify handler

Before the signal handler would get the ghostpad passed as second
argument but it could've already been unreffed and destroyed.
This would then lead to crashes and all that.

Now we get the ghostpad from the proxy pad, which we get from the
target pad as it's peer.

Fixes bug #591318.
gst/gstghostpad.c