element: Add guard to gst_element_release_pad() to ensure the pad belongs to this...
authorSebastian Dröge <sebastian@centricular.com>
Thu, 22 Dec 2016 10:05:56 +0000 (12:05 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 22 Dec 2016 10:08:14 +0000 (12:08 +0200)
commit597e43cffc35b54bd09e3b75fb6dff6c09b3f810
treecb32330339c84a6bf5144b98fd15eba400e05f72
parenta5246f91afea55874ddbedc0115748261db4cf14
element: Add guard to gst_element_release_pad() to ensure the pad belongs to this element

It's a programming error to pass other pads here, and it easily causes
crashes or other problematic behaviour down the road as subclasses
usually assume to only get their pads.
gst/gstelement.c