inputselector, outputselector: add guards for wrong pads being set as active pads
authorTim-Philipp Müller <tim@centricular.com>
Tue, 17 Apr 2018 10:01:09 +0000 (11:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 17 Apr 2018 17:57:17 +0000 (18:57 +0100)
commit65e0907798aa99df6b70b0cecd351033f834ea08
tree1b4e97fc42d37a8972dd026bca51f5f5cae2237d
parentb27ee943c2a44a5437a5343d21a9d2be918a1279
inputselector, outputselector: add guards for wrong pads being set as active pads

Catch users wrongly setting foreign pads or wrong pads as
the selector's active pad, which leads to all kinds of
other issues. It's a programming error so handle it just
like we would if we had direct API.

https://bugzilla.gnome.org/show_bug.cgi?id=795309
plugins/elements/gstinputselector.c
plugins/elements/gstoutputselector.c