[gstreamer-bugs] [Bug 610364] udpsrc allocates buffers with size a lot bigger than needed.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Feb 18 12:24:56 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=610364
  GStreamer | gst-plugins-good | git

Olivier Crete (Tester) <tester> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |tester at tester.ca
     Ever Confirmed|0                           |1

--- Comment #1 from Olivier Crete (Tester) <tester at tester.ca> 2010-02-18 20:24:52 UTC ---
On Linux, ioctl(FIONREAD) on a udp socket returns the size of the next packet,
so it is correct.

That said, on windows and osx, it returns the total.

On Windows, we need to call WSAIoctl(FIONREAD)l, not ioctlsocket() to get the
right value.

On OSX, it should call getsockopt(SO_NREAD).

I guess this is a case for #ifdefs

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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