decodebin3: When reconfiguring a slot make sure that the ghostpad is unlinked
authorSebastian Dröge <sebastian@centricular.com>
Thu, 24 Dec 2020 09:44:27 +0000 (11:44 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 24 Dec 2020 09:44:27 +0000 (11:44 +0200)
commit15fb391401f300b6a63e117aaaa24a308148b754
tree44413fa96b3d4e6c3595bbdfa6587f7539d8d43c
parent932dfd4031bff98df65a045230b03b40c00a5271
decodebin3: When reconfiguring a slot make sure that the ghostpad is unlinked

This was only taken care of previously if there was a decoder before.
However if previously a decoder was not needed then the ghostpad
would've been linked directly to the slot's srcpad.

Reconfiguring the slot requires this to be undone so that linking can
happen normally.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/985>
gst/playback/gstdecodebin3.c