GNOME Bugzilla – Bug 433530
udpsrc read of size 0
Last modified: 2007-04-26 08:48:42 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.
Created attachment 87052 [details] [review] udpsrc null readsize test
* 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.