After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 433530 - udpsrc read of size 0
udpsrc read of size 0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-26 08:27 UTC by Laurent Glayal
Modified: 2007-04-26 08:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
udpsrc null readsize test (630 bytes, patch)
2007-04-26 08:28 UTC, Laurent Glayal
none Details | Review

Description Laurent Glayal 2007-04-26 08:27:22 UTC
Hi,
we have experienced some cases where the following call in udpsrc element returns readsize = 0, without error from ioctl ::

 if ((ret = IOCTL_SOCKET (udpsrc->sock, FIONREAD, &readsize)) < 0)
    goto ioctl_failed;

Following is a patch to test readsize and return GST_FLOW_ERROR.

Regards.
Comment 1 Laurent Glayal 2007-04-26 08:28:38 UTC
Created attachment 87052 [details] [review]
udpsrc null readsize test
Comment 2 Wim Taymans 2007-04-26 08:48:42 UTC
        * gst/udp/gstudpsrc.c: (gst_udpsrc_create):
        Handle the case where there are exactly 0 bytes to read and the ioctl
        did not report an error. Fixes #433530.