utils: check the correct element's state on ghosting pads
authorMatthew Waters <matthew@centricular.com>
Mon, 4 Apr 2016 10:28:18 +0000 (10:28 +0000)
committerMatthew Waters <matthew@centricular.com>
Wed, 6 Apr 2016 13:26:41 +0000 (23:26 +1000)
commite8c8c27ae81519af7942d34ed65a390baf27328e
tree9f3225beed343637cb5413246a159fff7275b3a1
parentf87630663856e15ef6d6e93b40a1f01f56aaa718
utils: check the correct element's state on ghosting pads

Checking the current element's state when we're adding pads to
the parent element is checking the wrong thing.

Silences a 'attempting to add an inactive pad to a running element'
warning when adding a ghost pad to a running parent bin of the parent
bin of the element.

https://bugzilla.gnome.org/show_bug.cgi?id=764176
gst/gstutils.c
tests/check/gst/gstutils.c