bin: fix refcount when removing elements during state change
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 14 Apr 2010 15:56:17 +0000 (17:56 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 14 Apr 2010 16:32:26 +0000 (18:32 +0200)
commit67ab660b193dcaa41af9e147f62c4144ddae499f
treee0fc2bda16eab748a57ec669566398c560944105
parent88b4a704f34e896f9ac87c93780f04994f182ffa
bin: fix refcount when removing elements during state change

When an element is removed from a bin because it caused a state change error,
don't unref the child twice.
Add some more debug info.
Add a unit test for this error.

Fixes #615756
gst/gstbin.c
tests/check/gst/gstbin.c