gstpoll: retry reading the control socket to release properly all wakeups
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Mon, 4 Apr 2011 01:33:46 +0000 (03:33 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 4 Apr 2011 09:05:45 +0000 (11:05 +0200)
commit7c6d9c2725a9632fbd96fd41b60ed814649d3bec
tree0388ae0ed79f7f5446aa779eb4cb6890db6692ba
parenteba33c1de11fc7fb63fb31a764d3c16698eea490
gstpoll: retry reading the control socket to release properly all wakeups

if set->control_pending is set to 0 but we didn't not succed reading
the control socket, future calls to gst_poll_wait() will be awaiken
by the control socket which will not be released properly because
set->control_pending is already 0, causing an infinite loop.
gst/gstpoll.c