bin: try harder to avoid state changes in wrong direction
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 18 May 2012 13:04:35 +0000 (15:04 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 21 May 2012 09:58:28 +0000 (11:58 +0200)
commit146ab8a702140156b90a3e4033319887dbc399a3
tree8efad2f7f55c90f52e6b6620d19431a1bd8d4a99
parent86375c6c42e867ba7bef25f3f17adc886ba0b5b8
bin: try harder to avoid state changes in wrong direction

When the bin does an upward state change, try to avoid doing a downward state
change on the child and vice versa.
Add some more unit tests for this fix.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=621833
gst/gstbin.c
tests/check/gst/gstbin.c