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 553191 - udpsrc: bind() fails on OS X
udpsrc: bind() fails on OS X
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Mac OS
: Normal normal
: 0.10.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 557610 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-21 23:52 UTC by Daniel Franke
Modified: 2008-10-23 13:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (558 bytes, patch)
2008-09-21 23:55 UTC, Daniel Franke
none Details | Review

Description Daniel Franke 2008-09-21 23:52:43 UTC
OS X's bind() implementation is picky about its addrlen parameter and fails with EINVAL if it is larger than expected for the socket's address family.  This is breaking udpsrc.
Comment 1 Daniel Franke 2008-09-21 23:55:50 UTC
Created attachment 119139 [details] [review]
Fix
Comment 2 Wim Taymans 2008-09-25 10:35:15 UTC
        Patch by: Daniel Franke <df at dfranke dot us>

        * gst/udp/gstudpsrc.c: (gst_udpsrc_create), (gst_udpsrc_start):
        OS X's bind() implementation is picky about its addrlen parameter and
        fails with EINVAL if it is larger than expected for the socket's address
        family. Set the length to the expected length instead. Fixes #553191.
Comment 3 Wim Taymans 2008-10-23 13:53:11 UTC
*** Bug 557610 has been marked as a duplicate of this bug. ***