summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstudpnetutils.c
Commit message (Collapse)AuthorAgeFilesLines
* udpsink: Add ttl multicast propertyJarkko Palviainen2009-08-311-0/+1
| | | | | | Add a new ttl-mc property to control the TTL on multicast addresses. Fixes #588245
* udp: split out TTL and loop optionsJarkko Palviainen2009-08-311-14/+55
| | | | | | | Split setting the TTL and loop parameters in 2 methods as they are not related. Fix setting the TTL correctly for multicast streams. See #588245
* udputils: initialize struct content with 0.Josep Torra2009-07-211-0/+4
| | | | Fixes some random crashes.
* udp: Initialize pointer to NULLBenjamin Gaignard2009-07-081-1/+1
| | | | | | | Otherwise we're calling free() with some random memory address in error cases. Fixes bug #587982.
* udp: fix compiler warning about EAI_ADDRFAMILY getting redefined in some casesTim-Philipp Müller2009-06-231-2/+2
| | | | | | | Include the header from where we include all the system headers with the socket stuff before we try to define EAI_ADDRFAMILY ourselves, otherwise we define it ourselves and then get a compiler warning if a system header defines it as well without guarding against it being defined already.
* udputils: don't free invalid memoryWim Taymans2009-06-191-1/+1
| | | | | As spotted by benjiG in IRC. don't free invalid memory when getaddrinfo failed.
* udp: Fix a simple typo in the previous commitJan Schmidt2009-04-201-1/+1
| | | | Use #ifdef instead of #if, to fix the build
* only use struct ip_mreqn if it is detectedAndy Wingo2009-04-201-6/+6
| | | | | | * configure.ac: Make an explicit check for struct ip_mreqn. * gst/udp/gstudpnetutils.c: Use HAVE_IP_MREQN instead of the ad-hoc checks.
* udp: Fix build if on SolarisDavid Adam2009-03-191-2/+2
| | | | | | This patch checks for Solaris and uses ip_mreq instead of ip_mreqn if on this platform. Fixes #575937.
* udpsrc: Add network interface selectionEdgar E. Iglesias2009-03-131-1/+17
| | | | | | | | Add network interface selection when joining multicast groups. Useful when using the udpsrc on multihomed hosts. Fixes #575234. API: GstUDPSrc::multicast-iface
* Merge branch 'master' of ↵Sebastian Dröge2009-02-271-4/+8
|\ | | | | | | ssh://git.freedesktop.org/git/gstreamer/gst-plugins-good
| * udp: fix gst_udp_set_loop_ttl() againJan Smout2009-02-261-4/+8
| | | | | | | | | | Fix the gst_udp_set_loop_ttl() function that was commented out in a previous commit. See #573115.
* | udp: Don't set errno to EAFNOSUPPORT unconditionallyLRN2009-02-271-0/+4
|/ | | | Fixes bug #573342.
* Correct return value from gst_udp_get_addr() when no known family is found.Peter Kjellerstedt2009-01-261-2/+1
|
* Switch to using GstStaticPadTemplate.Edward Hervey2008-12-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * ext/flac/gstflacdec.c: (gst_flac_dec_base_init), (gst_flac_dec_init): * gst/law/alaw-decode.c: (gst_alaw_dec_base_init), (gst_alaw_dec_init): * gst/law/alaw-encode.c: (gst_alaw_enc_base_init), (gst_alaw_enc_init): * gst/law/alaw.c: (plugin_init): * gst/law/mulaw-decode.c: (gst_mulawdec_base_init), (gst_mulawdec_init): * gst/law/mulaw-encode.c: (gst_mulawenc_base_init), (gst_mulawenc_init): * gst/law/mulaw.c: (plugin_init): Switch to using GstStaticPadTemplate. * gst/udp/gstudpnetutils.c: (gst_udp_get_addr): Don't forget to free the addrinfo structure. * gst/wavparse/gstwavparse.c: (gst_wavparse_reset), (gst_wavparse_sink_activate): Don't forget to unref the GstAdapter.
* gst/udp/: Fix multiudpsink on OSX by passing the specific length of the ↵Michael Smith2008-11-201-0/+17
| | | | | | | | | | | | socket, refactor that into a function shared ... Original commit message from CVS: * gst/udp/gstmultiudpsink.c: * gst/udp/gstudpnetutils.c: * gst/udp/gstudpnetutils.h: * gst/udp/gstudpsrc.c: Fix multiudpsink on OSX by passing the specific length of the socket, refactor that into a function shared with the same thing in udpsrc.
* gst/goom/: Fix build with MSVC: include glib.h to define inline ↵Michael Smith2008-07-231-1/+13
| | | | | | | | | | | | | | | | | | appropriately, use header guards where needed. Original commit message from CVS: * gst/goom/convolve_fx.c: * gst/goom/filters.c: * gst/goom/goom_config.h: * gst/goom/goom_core.c: * gst/goom/goom_tools.h: Fix build with MSVC: include glib.h to define inline appropriately, use header guards where needed. * gst/udp/gstudpnetutils.c: * gst/udp/gstudpsrc.c: Fix build with MSVC: use WSA* constants/functions where appropriate, use g_snprintf rather than snprintf. Fixes #544433.
* gst/udp/gstudpnetutils.c: EAI_ADDRFAMILY was obsoleted in BSD at some point. ↵Sebastian Dröge2008-07-141-0/+5
| | | | | | | | | | Define it to the old value (1) if it's n... Original commit message from CVS: * gst/udp/gstudpnetutils.c: EAI_ADDRFAMILY was obsoleted in BSD at some point. Define it to the old value (1) if it's not defined which should not cause any problems as we're using it internal only anyway.
* gst/udp/gstudpnetutils.c: Use g_ntohl for better portability.Wim Taymans2008-06-131-1/+1
| | | | | | Original commit message from CVS: * gst/udp/gstudpnetutils.c: (gst_udp_is_multicast): Use g_ntohl for better portability.
* gst/smpte/gstsmptealpha.c: Fix debug statement arguments.Julien Moutte2008-05-221-2/+2
| | | | | | | | | | | | Original commit message from CVS: 2008-05-22 Julien Moutte <julien@fluendo.com> * gst/smpte/gstsmptealpha.c: (gst_smpte_alpha_setcaps): Fix debug statement arguments. * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_setup_qos_dscp): * gst/udp/gstudpnetutils.c: (gst_udp_join_group), (gst_udp_leave_group): Fix IP and IPV6 options to make it work on more platforms.
* gst/udp/: Joining a multicast group and setting the loop/ttl properties are ↵Wim Taymans2008-05-211-23/+43
| | | | | | | | | | | | | | totally unrelated tasks are must be separ... Original commit message from CVS: * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_init_send), (gst_multiudpsink_add_internal): * gst/udp/gstudpnetutils.c: (gst_udp_set_loop_ttl), (gst_udp_join_group): * gst/udp/gstudpnetutils.h: * gst/udp/gstudpsrc.c: (gst_udpsrc_start): Joining a multicast group and setting the loop/ttl properties are totally unrelated tasks are must be separated.
* gst/udp/gstudpnetutils.*: Provide a bunch of helper methods to deal with ↵Bruno Santos2008-05-211-11/+179
| | | | | | | | | | | | | | | | | | | | | | | | | IPv4 and IPv6 transparently. Original commit message from CVS: Patch by: Bruno Santos <brunof at ua dot pt> * gst/udp/gstudpnetutils.c: (gst_udp_get_addr), (gst_udp_join_group), (gst_udp_leave_group), (gst_udp_is_multicast): * gst/udp/gstudpnetutils.h: Provide a bunch of helper methods to deal with IPv4 and IPv6 transparently. * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_class_init), (gst_multiudpsink_init), (gst_multiudpsink_set_property), (gst_multiudpsink_get_property), (join_multicast), (gst_multiudpsink_init_send), (gst_multiudpsink_add_internal), (gst_multiudpsink_remove): * gst/udp/gstmultiudpsink.h: Add multicast TTL and loopback properties. Use the helper methods to implement ip4 and ip6. * gst/udp/gstudpsrc.c: (gst_udpsrc_create), (gst_udpsrc_start): * gst/udp/gstudpsrc.h: Use the helper methods to implement ip4 and ip6. Fixes #515962.
* Port udp plugin to win32 (#345288).Joni Valtanen2006-07-241-0/+62
Original commit message from CVS: Based on patch by: Joni Valtanen <joni dot valtanen at movial fi> * configure.ac: * gst/udp/Makefile.am: * gst/udp/gstdynudpsink.c: (gst_dynudpsink_init), (gst_dynudpsink_finalize), (gst_dynudpsink_close): * gst/udp/gstdynudpsink.h: * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_init), (gst_multiudpsink_finalize), (gst_multiudpsink_close): * gst/udp/gstmultiudpsink.h: * gst/udp/gstudp.c: (plugin_init): * gst/udp/gstudpsink.h: * gst/udp/gstudpsrc.c: (gst_udpsrc_init), (gst_udpsrc_create), (gst_udpsrc_start), (gst_udpsrc_stop): * gst/udp/gstudpsrc.h: * gst/udp/gstudpnetutils.c: (gst_udp_net_utils_win32_inet_aton), (gst_udp_net_utils_win32_wsa_startup): * gst/udp/gstudpnetutils.h: Port udp plugin to win32 (#345288).