[Bug 794977] New: gstpoll: should not handle POLLPRI as read

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 4 14:37:29 UTC 2018


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

            Bug ID: 794977
           Summary: gstpoll: should not handle POLLPRI as read
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: gdesmott at gnome.org
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Current implementation of GstPoll considers "can read" as having either POLLIN
or POLLPRI being set :
https://cgit.freedesktop.org/gstreamer/gstreamer/tree/gst/gstpoll.c#n1023

This may lead to client being awaken because of POLLPRI, starting a blocking
read and getting stuck because there is actually nothing to read.
It also prevents applications to wait only on POLLPRI.

I'd suggest to remove this behavior in the read code and add specific API for
POLLPRI: gst_poll_fd_has_pri() (or has_priority?) and gst_poll_fd_ctl_pri

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list