inputselector: Block when receiving an EOS event on a deactivated pad
authorSong Bing <b06498@freescale.com>
Wed, 24 Dec 2014 02:13:51 +0000 (10:13 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 24 Dec 2014 12:33:12 +0000 (13:33 +0100)
commit11e4b744f5e7b686785cfce9081193c5e5ff6a5d
tree1b6ae154553aa32e18869db185dadbbdb54158a5
parent12a905929f239eb8fe111527d2244d19c6a97efa
inputselector: Block when receiving an EOS event on a deactivated pad

... and only unblock when either a) the pad becomes active and the event
should be forwarded or b) the active pad went EOS itself.

Otherwise it can happen that we switch from a longer track that is not EOS yet
to a shorter track that already is EOS, but the shorter track won't have any
possibility to send its EOS event downstream anymore.

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