summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstudpsrc.c
Commit message (Collapse)AuthorAgeFilesLines
* udpsrc: add debug line for the socketWim Taymans2009-06-161-0/+2
|
* 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: don't use protocol in debug message after freeingStefan Kost2009-03-311-1/+1
|
* udpsrc: convert _ in properties to -Wim Taymans2009-03-131-2/+2
| | | | --
* udpsrc: Add network interface selectionEdgar E. Iglesias2009-03-131-1/+20
| | | | | | | | Add network interface selection when joining multicast groups. Useful when using the udpsrc on multihomed hosts. Fixes #575234. API: GstUDPSrc::multicast-iface
* 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-281-71/+58
| | | | Link to properties. Correct titles for examples. Document a few trivial cases. Keep lists in section file and docs/plugins/Makefile.am alphabetically ordered.
* gst/udp/: Fix multiudpsink on OSX by passing the specific length of the ↵Michael Smith2008-11-201-13/+1
| | | | | | | | | | | | 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/udp/: Fix "argument type mismatch" compiler warnings on Windows.Sebastian Dröge2008-10-271-1/+8
| | | | | | | | | | 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/: Avoid leaking internally allocated file descriptors when setting ↵Peter Kjellerstedt2008-08-201-8/+17
| | | | | | | | | | | | | | | | 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-231-0/+4
| | | | | | | | | | | | | | | | | | 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/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/udp/gstudpsrc.*: Add property to control automatic join/leave of ↵Wim Taymans2008-06-131-54/+70
| | | | | | | | | | | | | | | | | | | | | 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/: Joining a multicast group and setting the loop/ttl properties are ↵Wim Taymans2008-05-211-1/+1
| | | | | | | | | | | | | | 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-24/+41
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* gst/udp/gstudpsrc.c: Don't error out if we get an ICMP ↵Youness Alaoui2008-05-011-0/+18
| | | | | | | | | | destination-unreachable message when trying to read packets on... Original commit message from CVS: Patch by: Youness Alaoui <youness.alaoui at collabora co uk> * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Don't error out if we get an ICMP destination-unreachable message when trying to read packets on win32 (#529454).
* gst/: Use GLib versions of htonl, htons, ntohl and ntohs in order to avoid ↵Tim-Philipp Müller2008-04-251-3/+3
| | | | | | | | | | | problems on win32 (#529707). Original commit message from CVS: * gst/rtp/gstasteriskh263.c: (gst_asteriskh263_chain): * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_add_internal): * gst/udp/gstudpsrc.c: (gst_udpsrc_start): Use GLib versions of htonl, htons, ntohl and ntohs in order to avoid problems on win32 (#529707).
* gst/udp/gstudpsrc.c: Fix compilation after removing the GstPollMode from the ↵Wim Taymans2008-03-071-1/+1
| | | | | | | | | constructor. Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_start): Fix compilation after removing the GstPollMode from the constructor.
* gst/udp/gstudpsrc.c: Properly balance WSA_Cleanup with WSA_Startup.Ole André Vadla Ravnås2008-03-071-7/+2
| | | | | | | | | Original commit message from CVS: Patch by: Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com> * gst/udp/gstudpsrc.c: (gst_udpsrc_finalize), (gst_udpsrc_start), (gst_udpsrc_stop): Properly balance WSA_Cleanup with WSA_Startup. Also make the poll controllable on windows. Fixes #520888.
* gst/udp/gstudpsrc.*: Port to GstPoll. See #505417.Peter Kjellerstedt2008-02-281-121/+59
| | | | | | | | | | Original commit message from CVS: Patch by: Peter Kjellerstedt <pkj at axis com> * gst/udp/gstudpsrc.c: (gst_udpsrc_init), (gst_udpsrc_create), (gst_udpsrc_get_property), (gst_udpsrc_start), (gst_udpsrc_unlock), (gst_udpsrc_unlock_stop), (gst_udpsrc_stop): * gst/udp/gstudpsrc.h: Port to GstPoll. See #505417.
* Fix includes for MSVC and GLib-2.14.0 (#492388).Ole André Vadla Ravnås2007-11-021-2/+8
| | | | | | | | | | | | | | | Original commit message from CVS: Patch by: Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com> * configure.ac: * gst/udp/gstdynudpsink.c: * gst/udp/gstdynudpsink.h: * gst/udp/gstmultiudpsink.c: * gst/udp/gstmultiudpsink.h: * gst/udp/gstudpsink.c: * gst/udp/gstudpsink.h: Fix includes for MSVC and GLib-2.14.0 (#492388). * gst/udp/gstudpsrc.c: (gst_udpsrc_start): No more pipe define since GLib-2.14.0, need to use _pipe() directly.
* gst/udp/gstudpsrc.c: When the socket is used by the app for other purposes, ↵Laurent Glayal2007-10-181-8/+6
| | | | | | | | | | | don't generate an error if there is activ... Original commit message from CVS: Based on patch by: Laurent Glayal <spglegle yahoo fr> * gst/udp/gstudpsrc.c: (gst_udpsrc_create): When the socket is used by the app for other purposes, don't generate an error if there is activaty on the socket that is not data related. Fixes #487488.
* gst/udp/gstudpsrc.c: Update documentation.Wim Taymans2007-09-261-3/+4
| | | | | | Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Update documentation.
* gst/udp/gstudpsrc.c: Make udpsrc timestamp outgoing buffers based on when ↵Wim Taymans2007-09-101-0/+2
| | | | | | | | | they were received. Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_init), (gst_udpsrc_create): Make udpsrc timestamp outgoing buffers based on when they were received. Also make it output a segment in time.
* gst/udp/gstmultiudpsink.*: Add support for getting and setting the socket to ↵Wim Taymans2007-08-171-2/+11
| | | | | | | | | | | | | | | use. Original commit message from CVS: * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_class_init), (gst_multiudpsink_init), (gst_multiudpsink_set_property), (gst_multiudpsink_get_property), (gst_multiudpsink_init_send), (gst_multiudpsink_close), (gst_multiudpsink_add): * gst/udp/gstmultiudpsink.h: Add support for getting and setting the socket to use. * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_init), (gst_udpsrc_create), (gst_udpsrc_get_property): Add support for getting the currently used socket.
* gst/udp/gstudpsrc.c: Improve UDP performance by avoiding a select() when we ↵Wim Taymans2007-08-161-2/+11
| | | | | | | | | have data available immediatly. Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Improve UDP performance by avoiding a select() when we have data available immediatly.
* gst/udp/gstudpsrc.c: Since we depend on 0.10.13 -core, override the ↵Wim Taymans2007-05-211-31/+32
| | | | | | | | | | unlock_stop vmethod for safer shutdown. Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_create), (gst_udpsrc_unlock), (gst_udpsrc_unlock_stop): Since we depend on 0.10.13 -core, override the unlock_stop vmethod for safer shutdown.
* gst/udp/gstmultiudpsink.c: Fix multicast detection.Wim Taymans2007-04-291-0/+2
| | | | | | | | | Original commit message from CVS: * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_add): Fix multicast detection. Don't try to join a multicast group if the address is not multicast. * gst/udp/gstudpsrc.c: (gst_udpsrc_update_uri): Small debug improvement.
* gst/udp/gstudpsrc.c: Handle the case where there are exactly 0 bytes to read ↵Wim Taymans2007-04-261-2/+14
| | | | | | | | | and the ioctl did not report an error. F... Original commit message from CVS: * 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.
* gst/udp/: Rework the socket allocation a bit based on the sockfd argument so ↵Laurent Glayal2007-03-291-21/+47
| | | | | | | | | | | | | | | | | | | | | | that it becomes usable. Original commit message from CVS: Patch by: Laurent Glayal <spglegle at yahoo dot fr> * gst/udp/gstdynudpsink.c: (gst_dynudpsink_class_init), (gst_dynudpsink_init), (gst_dynudpsink_set_property), (gst_dynudpsink_get_property), (gst_dynudpsink_init_send), (gst_dynudpsink_close): * gst/udp/gstdynudpsink.h: * 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: Rework the socket allocation a bit based on the sockfd argument so that it becomes usable. Add a closefd property to instruct the udp elements to close the custom file descriptors when going to READY. Fixes #423304. API:GstUDPSrc::closefd property API:GstDynUDPSink::closefd property
* gst/udp/gstudpsrc.c: Fix doc.Wim Taymans2007-03-021-1/+2
| | | | | | | Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_create): Fix doc.
* gst/udp/gstudpsrc.*: Add support to strip proprietary headers. Fixes #350296.Thijs Vermeir2007-03-021-5/+37
| | | | | | | | | | Original commit message from CVS: Patch by: Thijs Vermeir <thijsvermeir at gmail dot com> * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_init), (gst_udpsrc_create), (gst_udpsrc_set_property), (gst_udpsrc_get_property): * gst/udp/gstudpsrc.h: Add support to strip proprietary headers. Fixes #350296.
* gst/avi/gstavimux.c: Comment a #if 0 in caps template definition as VS6 ↵Sébastien Moutte2007-02-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | seems to do not support it. Original commit message from CVS: * gst/avi/gstavimux.c: Comment a #if 0 in caps template definition as VS6 seems to do not support it. * gst/rtsp/gstrtspsrc.c:(gst_rtspsrc_loop_udp): Use gst_guint64_to_gdouble for conversion. * gst/rtsp/rtspconnection.c:(rtsp_connection_send): Move variables declaration before the first instruction. * gst/rtsp/rtspdefs.c:(rtsp_strresult): Don't use hstrerror for error log on G_OS_WIN32 build as it's not supported. And don't include netdb.h for G_OS_WIN32 * gst/rtsp/sdpmessage.c:(sdp_parse_line): This initialization SDPMedia nmedia = {.media = NULL }; is not supported by VS6 then use an other way to initialize SDPMedia structure. * gst/udp/gstdynudpsink.h: * gst/udp/gstdynudpnetutils.h: Do not include <sys/time.h> for G_OS_WIN32 * gst/udp/gstudpsrc.c: Define socklen_t as int for G_OS_WIN32 * win/common/config.h.in: Undef HAVE_NETINET_IN_H * win32/vs6/gst_plugins_good.dsw: * win32/vs6/libgstrtp.dsp: * win32/vs6/libgstrtsp.dsp: * win32/vs6/libgstautogen.dsp: * win32/vs6/libgstaudiofx.dsp: * win32/vs6/libgstudp.dsp: Add and update project files. * win32/common/gstudp-enumtypes.c: * win32/common/gstudp-enumtypes.h: Add a copy of udp enumtypes to win32/common as in core and base.
* ext/jpeg/: These libjpeg callbacks should return a 'boolean' (unsigned char ↵Vincent Torri2007-01-081-2/+2
| | | | | | | | | | | | | | | | | apparently) and not a 'gboolean' (which m... Original commit message from CVS: Patch by: Vincent Torri <vtorri at univ-evry fr> * ext/jpeg/gstjpegdec.c: * ext/jpeg/gstjpegenc.c: * ext/jpeg/smokecodec.c: These libjpeg callbacks should return a 'boolean' (unsigned char apparently) and not a 'gboolean' (which maps to gint). Fixes warnings when compiling with MingW (#393427). * gst/rtsp/rtspconnection.c: (rtsp_connection_read): Use ioctlsocket on win32. * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Some printf format fixes for win32.
* gst/udp/gstudpsrc.c: If using multicast in udpsrc, bind to the multicast ↵Rob Taylor2006-12-061-9/+15
| | | | | | | | | | | | | | address rather than Original commit message from CVS: Patch by: Rob Taylor <robtaylor at floopily dot org> * gst/udp/gstudpsrc.c: (gst_udpsrc_start): If using multicast in udpsrc, bind to the multicast address rather than IN_ADDR_ANY. This allows the simultanous use of multiple udpsrcs listening on different multicat addresses. Without this all udpsrcs will receive all packets from all subscribed multicast addresses. Fixes #383001.
* Fix a bunch of problems discovered by the Forte compiler, mostly type mixups ↵Josep Torra Valles2006-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | and pointer arithmetics with void pointe... Original commit message from CVS: Patch by: Josep Torra Valles <josep at fluendo com> * ext/cairo/gsttimeoverlay.c: (gst_cairo_time_overlay_transform): * ext/esd/esdsink.c: (gst_esdsink_write): * ext/flac/gstflacdec.c: (gst_flac_dec_length), (gst_flac_dec_read_seekable), (gst_flac_dec_chain), (gst_flac_dec_send_newsegment): * ext/flac/gstflacenc.c: (gst_flac_enc_seek_callback), (gst_flac_enc_tell_callback): * ext/jpeg/smokecodec.c: (find_best_size), (smokecodec_encode), (smokecodec_parse_header), (smokecodec_decode): * gst/avi/gstavimux.c: (gst_avi_mux_write_avix_index): * gst/debug/efence.c: (gst_fenced_buffer_alloc): * gst/goom/Makefile.am: * gst/goom/gstgoom.c: * gst/icydemux/gsticydemux.c: (gst_icydemux_typefind_or_forward): * gst/rtsp/gstrtspsrc.c: * gst/rtsp/rtspconnection.c: (rtsp_connection_read): * gst/udp/gstudpsink.c: * gst/udp/gstudpsrc.c: * gst/wavparse/gstwavparse.c: (gst_wavparse_change_state): * sys/sunaudio/gstsunaudiomixertrack.h: Fix a bunch of problems discovered by the Forte compiler, mostly type mixups and pointer arithmetics with void pointers. Fixes #362603.
* gst/udp/gstudpsrc.c: Fix some leaks in caps and uris. Fixes #361252.Sebastien Cote2006-10-111-8/+23
| | | | | | | | | Original commit message from CVS: Patch by: Sebastien Cote <sebas642 at yahoo dot ca> * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_finalize), (gst_udpsrc_create), (gst_udpsrc_set_uri), (gst_udpsrc_start): Fix some leaks in caps and uris. Fixes #361252.
* gst/rtsp/URLS: Add some more URLs.Wim Taymans2006-09-291-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * gst/rtsp/URLS: Add some more URLs. * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_class_init), (gst_rtspsrc_init), (gst_rtspsrc_finalize), (gst_rtspsrc_set_property), (gst_rtspsrc_get_property), (gst_rtspsrc_stream_setup_rtp), (gst_rtspsrc_loop_interleaved), (gst_rtspsrc_loop_udp), (gst_rtspsrc_loop_send_cmd), (gst_rtspsrc_loop), (gst_rtspsrc_send), (gst_rtspsrc_parse_methods), (gst_rtspsrc_open), (gst_rtspsrc_close), (gst_rtspsrc_play), (gst_rtspsrc_pause), (gst_rtspsrc_handle_message), (gst_rtspsrc_change_state): * gst/rtsp/gstrtspsrc.h: Add timeout property to control UDP timeouts. Fix error messages. Also start a loop function when operating in UDP mode so that we can do some more stuff async. Handle element messages from udpsrc to detect timeouts. If a timeout happens we currently generate an error. API: rtspsrc::timeout property. * gst/udp/gstudpsrc.c: (gst_udpsrc_class_init), (gst_udpsrc_create): Really implement the timeout in microseconds and not milliseconds.
* gst/udp/gstudpsrc.*: Added property to post a message on timeout.Wim Taymans2006-09-291-22/+78
| | | | | | | | | | | | | 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_unlock), (gst_udpsrc_stop): * gst/udp/gstudpsrc.h: Added property to post a message on timeout. Updated docs. When restarting the select, initialize the fdsets again. Init control sockets so we don't accidentally close a random socket. API: GstUDPSrc::timeout property
* gst/udp/gstudpsrc.c: Fix possible infinite loop when shutting down, a read ↵Antoine Tremblay2006-09-291-1/+1
| | | | | | | | | | can also return 0 to indicate no more mess... Original commit message from CVS: Patch by: Antoine Tremblay <hexa00 at gmail dot com> * gst/udp/gstudpsrc.c: (gst_udpsrc_create): Fix possible infinite loop when shutting down, a read can also return 0 to indicate no more messages are available. Fixes #358156.
* gst/: Include stdlib.h in some more places, makes things compile with uClibc ↵Peter Kjellerstedt2006-09-251-0/+1
| | | | | | | | | | | | | | and -Werror (#357592). Original commit message from CVS: Patch by: Peter Kjellerstedt <pkj at axis com> * gst/alpha/gstalpha.c: * gst/rtp/gstrtpamrdepay.c: * gst/rtsp/gstrtspsrc.c: * gst/udp/gstudpsrc.c: * gst/videomixer/videomixer.c: Include stdlib.h in some more places, makes things compile with uClibc and -Werror (#357592).
* gst/udp/: Update README, simple cleanup.Wim Taymans2006-09-211-1/+1
| | | | | | | Original commit message from CVS: * gst/udp/README: * gst/udp/gstudpsrc.c: (gst_udpsrc_set_property): Update README, simple cleanup.