summaryrefslogtreecommitdiffstats
path: root/gst/udp
Commit message (Collapse)AuthorAgeFilesLines
* build: use gst-glib-gen.mak to fix the glib build rules.Stefan Kost2009-10-161-2/+3
| | | | The build rules in glib-gen.mak were using pattern rules in a non save way.
* udpsink: Add ttl multicast propertyJarkko Palviainen2009-08-313-3/+19
| | | | | | Add a new ttl-mc property to control the TTL on multicast addresses. Fixes #588245
* udp: split out TTL and loop optionsJarkko Palviainen2009-08-313-19/+96
| | | | | | | 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
* multiudpsink: don't do things with side-effects inside g_return_val_if_fail()Tim-Philipp Müller2009-08-021-3/+4
| | | | Someone might compile this code with -DG_DISABLE_ASSERT some day.
* 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.
* Don't use sendmsg()-dependent code on WindowsLRN2009-06-301-0/+6
| | | | Fixes #585842
* 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.
* udp: Fix build on FreeBSDKoop Mast2009-06-191-1/+1
| | | | Fixes bug #586397.
* 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.
* udpsrc: add debug line for the socketWim Taymans2009-06-161-0/+2
|
* multiudpsink: add support for buffer listsOgnyan Tonchev2009-06-161-0/+90
| | | | | | Add support for BufferList and add a unit test. Fixes #585842
* udpsrc: fix getaddrinfo error reportingWim Taymans2009-04-271-1/+1
| | | | | getaddrinfo errors should be reported with gai_strerror instead of errno as spotted by MikeS.
* 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.
* Remove trivial unused variables detected by CLang static analyzer.Edward Hervey2009-04-182-8/+4
|
* Remove unused variables in _class_initEdward Hervey2009-04-181-4/+0
| | | | Detected by LLVM's CLang static analyzer
* udp: don't use protocol in debug message after freeingStefan Kost2009-03-312-2/+2
|
* 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: convert _ in properties to -Wim Taymans2009-03-131-2/+2
| | | | --
* udpsrc: Add network interface selectionEdgar E. Iglesias2009-03-135-5/+43
| | | | | | | | 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.
* udpsrc: fix compilationWim Taymans2009-02-251-0/+4
| | | | Fix compilation on systems MSG_ERRQUEUE and IP_RECVERR.
* udpsrc: Make sure the sockaddr length used for recvfrom() is big enough.Peter Kjellerstedt2009-02-251-1/+1
| | | | | | | Previously the sockaddr length used for recvfrom() was calculated as sizeof (struct sockaddr). However, this is too little to hold an IPv6 address, so the full size of the gst_sockaddr union should be used instead.
* udpsrc: Unify the use of union gst_sockaddr.Peter Kjellerstedt2009-02-251-8/+7
|
* udp: Fix strict-aliasing warnings from gcc 4.4.0Jan Schmidt2009-02-241-11/+14
| | | | | Fix strict aliasing warnings by defining a union on the different sockaddr structs that we need.
* Read ICMP error messages instead of loopingAurelien Grimaud2009-02-231-2/+44
| | | | | | | | | | When we are dealing with connected sockets shared between a udpsrc and a udpsink we might receive ICMP connection refused error messages in udpsrc that will cause it to go into a bursty loop because the poll returns right away without a message to read. Instead of looping, read the error message from the error queue in udpsrc. Fixes #567857.
* Update and add documentation for plugins with deps (ext).Stefan Kost2009-01-281-1/+1
| | | | Link to properties. Correct titles for examples. Document a few trivial cases. Keep lists in section file and docs/plugins/Makefile.am alphabetically ordered. Fix warnings that gtk-doc points out.
* Update and add documentation for plugins with no deps (gst).Stefan Kost2009-01-283-76/+72
| | | | Link to properties. Correct titles for examples. Document a few trivial cases. Keep lists in section file and docs/plugins/Makefile.am alphabetically ordered.
* 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/gstmultiudpsink.c: Provide the parameters that are required for the ↵Sebastian Dröge2008-11-301-2/+2
| | | | | | | | | format string to fix a compiler warning. Original commit message from CVS: * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render): Provide the parameters that are required for the format string to fix a compiler warning.
* gst/udp/gstmultiudpsink.c: Make gst_multiudpsink_render() ignore errors from ↵Peter Kjellerstedt2008-11-281-22/+16
| | | | | | | | | | sendto() instead of breaking streaming. ... Original commit message from CVS: Patch by: Peter Kjellerstedt <pkj at axis com> * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render): Make gst_multiudpsink_render() ignore errors from sendto() instead of breaking streaming. Emit a warning instead. Fixes #562572.
* gst/udp/: Fix multiudpsink on OSX by passing the specific length of the ↵Michael Smith2008-11-204-14/+23
| | | | | | | | | | | | 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.
* Don't install static libs for plugins. Fixes #550851 for -good.Stefan Kost2008-11-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * ext/aalib/Makefile.am: * ext/annodex/Makefile.am: * ext/cairo/Makefile.am: * ext/dv/Makefile.am: * ext/esd/Makefile.am: * ext/flac/Makefile.am: * ext/gconf/Makefile.am: * ext/gdk_pixbuf/Makefile.am: * ext/hal/Makefile.am: * ext/jpeg/Makefile.am: * ext/ladspa/Makefile.am: * ext/libcaca/Makefile.am: * ext/libmng/Makefile.am: * ext/libpng/Makefile.am: * ext/mikmod/Makefile.am: * ext/pulse/Makefile.am: * ext/raw1394/Makefile.am: * ext/shout2/Makefile.am: * ext/soup/Makefile.am: * ext/speex/Makefile.am: * ext/taglib/Makefile.am: * ext/wavpack/Makefile.am: * gst/alpha/Makefile.am: * gst/apetag/Makefile.am: * gst/audiofx/Makefile.am: * gst/auparse/Makefile.am: * gst/autodetect/Makefile.am: * gst/avi/Makefile.am: * gst/cutter/Makefile.am: * gst/debug/Makefile.am: * gst/effectv/Makefile.am: * gst/equalizer/Makefile.am: * gst/flx/Makefile.am: * gst/goom/Makefile.am: * gst/goom2k1/Makefile.am: * gst/icydemux/Makefile.am: * gst/id3demux/Makefile.am: * gst/interleave/Makefile.am: * gst/law/Makefile.am: * gst/level/Makefile.am: * gst/matroska/Makefile.am: * gst/median/Makefile.am: * gst/monoscope/Makefile.am: * gst/multifile/Makefile.am: * gst/multipart/Makefile.am: * gst/oldcore/Makefile.am: * gst/qtdemux/Makefile.am: * gst/replaygain/Makefile.am: * gst/rtp/Makefile.am: * gst/rtsp/Makefile.am: * gst/smpte/Makefile.am: * gst/spectrum/Makefile.am: * gst/udp/Makefile.am: * gst/videobox/Makefile.am: * gst/videocrop/Makefile.am: * gst/videofilter/Makefile.am: * gst/videomixer/Makefile.am: * gst/wavenc/Makefile.am: * gst/wavparse/Makefile.am: * sys/directdraw/Makefile.am: * sys/directsound/Makefile.am: * sys/oss/Makefile.am: * sys/osxaudio/Makefile.am: * sys/osxvideo/Makefile.am: * sys/sunaudio/Makefile.am: * sys/v4l2/Makefile.am: * sys/waveform/Makefile.am: * sys/ximage/Makefile.am: Don't install static libs for plugins. Fixes #550851 for -good.
* gst/udp/gstudpnetutils.h: Define the correct WINVER so getaddinfo() can be ↵Sebastian Dröge2008-10-271-0/+3
| | | | | | | | | | used when using mingw32. Fixes bug #557294. Original commit message from CVS: Patch by: <lrn1986 at gmail dot com> * gst/udp/gstudpnetutils.h: Define the correct WINVER so getaddinfo() can be used when using mingw32. Fixes bug #557294.
* gst/udp/: Fix "argument type mismatch" compiler warnings on Windows.Sebastian Dröge2008-10-273-2/+16
| | | | | | | | | | Original commit message from CVS: Patch by: <lrn1986 at gmail dot com> * gst/udp/gstdynudpsink.c: (gst_dynudpsink_render): * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_render): * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Fix "argument type mismatch" compiler warnings on Windows. Fixes bug #557293.
* gst/udp/gstudpsrc.c: Switch on the socket family to get the addrlen size right.Wim Taymans2008-09-251-12/+14
| | | | | | | Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_set_uri), (gst_udpsrc_start): Switch on the socket family to get the addrlen size right.
* gst/udp/gstudpsrc.c: OS X's bind() implementation is picky about its addrlen ↵Daniel Franke2008-09-251-10/+3
| | | | | | | | | | | parameter and fails with EINVAL if it is... Original commit message from CVS: 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.
* gst/udp/gstmultiudpsink.c: Fix setting the qos.Wim Taymans2008-09-231-1/+1
| | | | | | Original commit message from CVS: * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_set_property): Fix setting the qos.
* gst/udp/: Avoid leaking internally allocated file descriptors when setting ↵Peter Kjellerstedt2008-08-203-23/+53
| | | | | | | | | | | | | | | | custom file descriptors. Fixes #543101. Original commit message from CVS: Patch by: Peter Kjellerstedt <pkj at axis com> * gst/udp/gstdynudpsink.c: (gst_dynudpsink_init), (gst_dynudpsink_finalize), (gst_dynudpsink_set_property), (gst_dynudpsink_init_send), (gst_dynudpsink_close): * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_init), (gst_multiudpsink_finalize), (gst_multiudpsink_set_property): * gst/udp/gstudpsrc.c: (gst_udpsrc_finalize), (gst_udpsrc_set_property): Avoid leaking internally allocated file descriptors when setting custom file descriptors. Fixes #543101.
* gst/goom/: Fix build with MSVC: include glib.h to define inline ↵Michael Smith2008-07-232-1/+17
| | | | | | | | | | | | | | | | | | 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/gstudpsrc.c: Fix parsing of udp:// URIs containing IPv6 addresses.Tero Saarni2008-07-051-1/+1
| | | | | | | | Original commit message from CVS: Patch by: Tero Saarni <tero dot saarni at gmail dot com> * gst/udp/gstudpsrc.c: (gst_udpsrc_set_uri): Fix parsing of udp:// URIs containing IPv6 addresses. Fixes bug #541650.
* gst/udp/gstudpsrc.c: Call getsockname() after the call to bind() to get ↵Sebastian Dröge2008-06-251-0/+32
| | | | | | | | | | | updated values for the port, etc. This fixes ... Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_start): Call getsockname() after the call to bind() to get updated values for the port, etc. This fixes the usage of udpsrc on anonymous binding and it's usage by rtspsrc. Fixes bugs #539372, #539548. Thanks to Aurelien Grimaud for pointing out the obvious fix.
* gst/: Added debug.Thomas Vander Stichele2008-06-201-1/+4
| | | | | | | Original commit message from CVS: * gst/rtp/gstrtptheorapay.c: * gst/udp/gstmultiudpsink.c: Added debug.
* gst/udp/gstudpsrc.*: Add property to control automatic join/leave of ↵Wim Taymans2008-06-132-54/+72
| | | | | | | | | | | | | | | | | | | | | multicast groups. Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_init), (gst_udpsrc_create), (gst_udpsrc_set_property), (gst_udpsrc_get_property), (gst_udpsrc_start), (gst_udpsrc_stop): * gst/udp/gstudpsrc.h: Add property to control automatic join/leave of multicast groups. Add G_LIKELY. Remove setting caps on buffers explicitly, basesrc does that for us now. Improve debug info. Convert some non-fatal error into warnings. Use g_ntohs for better portability. Leave multicast groups when stopping. When using external sockets, use getsockname() on them to fill up the addr structure before calling methods that use the structure. Should all fix #536903. API: GstUDPSrc::auto-multicast property
* 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.