decodebin2: Set ghostpad targets to NULL when freeing a decode chain
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Feb 2010 00:18:55 +0000 (01:18 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Feb 2010 00:21:14 +0000 (01:21 +0100)
commitb37de8a63bee36fa14dca45ed65cd07ac698c829
tree66fc2f038685e60770262a8aa4ba35dc153d2256
parent93d7bd2c433df62c58b47927c938670149e708f4
decodebin2: Set ghostpad targets to NULL when freeing a decode chain

Otherwise the ghostpad will still be linked to the peer and there
will still be a reference kept, leading to nothing being unlinked
and destroyed until decodebin2 is finalized.

This fixes reuse of decodebin2 if a raw stream is connected to
its sinkpad.
gst/playback/gstdecodebin2.c