[gstreamer-bugs] [Bug 568438] New: gst_poll_wait calling read() on control socket

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jan 20 07:16:44 PST 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=568438

  GStreamer | gstreamer (core) | Ver: HEAD CVS
           Summary: gst_poll_wait calling read() on control socket
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: spglegle at yahoo.fr
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


When using udpsrc the gst_poll_wait() calls read() on control socket for each
received packet even if no revent has been set by ppoll() on control socket.
here is a typical trace :

...
[pid  6308] 13:33:45.372187 ppoll( <unfinished ...>
[pid  6308] 13:33:45.392412 <... ppoll resumed> [{fd=14,
events=POLLIN|POLLPRI|POLLERR|POLLHUP|POLLNVAL}, {fd=7,
events=POLLIN|POLLPRI|POLLERR|POLLHUP|POLLN
VAL, revents=POLLIN}], 2, {...}, NULL, 8) = 1 <0.020171>
[pid  6308] 13:33:45.392488 read(14, 0xb63a4db7, 1) = -1 EAGAIN (Resource
temporarily unavailable) <0.000018>
...

Checking for ppoll revents may avoid unncecessary system call.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=568438.




More information about the Gstreamer-bugs mailing list