input-selector: Fix waiting on EOS
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>
Mon, 23 Mar 2015 12:05:30 +0000 (13:05 +0100)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 24 Mar 2015 12:28:44 +0000 (09:28 -0300)
commitce663311e1f00df5117b0249931e4ac960123cb8
treefb5e4a7ff849eeafe3d44a5b0bf3c73da6921a4e
parent150e8a5c972fde2275ce93e23402b29a59129a47
input-selector: Fix waiting on EOS

This apparently got broken by bc1ec4e. Since self->blocked is always
FALSE, gst_input_selector_wait never actually waits.

Using (!self->eos || self->blocked) && ... as the loop condition would
be incorrect as well, because then the other call to the function in
_chain would block until EOS, so the functions cannot be merged trivially.

Since blocking is obsolete, gst_input_selector_wait will get removed anyway.
As such, just inline the loop.

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