bus: Make sure to always read the control after popping a message
authorSebastian Dröge <sebastian@centricular.com>
Wed, 29 Jun 2016 12:02:55 +0000 (14:02 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 29 Jun 2016 19:21:04 +0000 (21:21 +0200)
commit4ff2721810539ac2e0240eb96435f7ecacac8316
treeb6c2c5a0b3f62dd6aed1629250c9e9728ad5869a
parent149127b755088a1bbc1982cdbf60a2c73aaa0f6c
bus: Make sure to always read the control after popping a message

It might happen that we popped the message before writing of the control
happened. In this case we just have to retry again a bit later, and failure to
do so will cause an additional byte in the control and the GSource /
gst_poll_wait() to always wake up again immediately.

https://bugzilla.gnome.org/show_bug.cgi?id=750397
gst/gstbus.c