poll: stop treating on POLLPRI as 'read'
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 5 Apr 2018 10:19:39 +0000 (12:19 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 8 Jun 2018 15:53:55 +0000 (11:53 -0400)
commit1e321eb51f225e0685ed8d10c9d8515d7b66c01b
tree0b1e791284559e0ed621fef8505757c67b9b51a1
parentd34f0460294b1e2eb762c4e5898e63c21152b399
poll: stop treating on POLLPRI as 'read'

Current code was considering "can read" as having either POLLIN or POLLPRI being
set.
This may lead to client being awaken because of POLLPRI, starting a blocking
read and getting stuck because there is actually nothing to read.

This patch removes POLLPRI handling in read code and I'll add specific
API to wait for POLLPRI.

https://bugzilla.gnome.org/show_bug.cgi?id=794977
gst/gstpoll.c