gstreamer/gst
John Ogness 0c4b60f010 udpsrc: drop dataless UDP packets
It is allowed to send/receive UDP packets with no data. When such
a packet is available, select() will return with success but
ioctl(FIONREAD) will return 0. But a read() must still occur in
order to clear off the UDP packet from the queue.

This patch will read the dataless packet from the socket. If
select() was woken for other reasons (and FIONREAD returns 0),
this may result in a UDP packet getting accidentally dropped.
But since UDP is not reliable, this is acceptable.

NOTE: This patch fixes a nasty bug where sending a dataless
      UDP packet to a udpsrc instance will cause an infinite
      loop.

https://bugzilla.gnome.org/show_bug.cgi?id=666644

Signed-off-by: John Ogness <john.ogness@linutronix.de>
2011-12-27 01:40:34 +00:00
..
alpha alpha: use new glib API for static mutex if available 2011-12-12 09:46:27 +00:00
apetag various: fix pad template leaks 2011-11-28 13:30:27 +00:00
audiofx Work around deprecated thread API in glib master 2011-12-12 09:46:27 +00:00
audioparsers ac3parse: remove unused variable 2011-12-21 13:16:44 +00:00
auparse various: fix pad template leaks 2011-11-28 13:30:27 +00:00
autodetect various: fix pad template leaks 2011-11-28 13:30:27 +00:00
avi avimux: use GstCollectPads2 event callback 2011-12-15 16:31:33 +01:00
cutter various: fix pad template leaks 2011-11-28 13:30:27 +00:00
debugutils various: fix pad template leaks 2011-11-28 13:30:27 +00:00
deinterlace various: fix pad template leaks 2011-11-28 13:30:27 +00:00
effectv rippletv: fix CLAMP end-values 2011-11-30 22:14:01 +01:00
equalizer Work around deprecated thread API in glib master 2011-12-12 09:46:27 +00:00
flv flvmux: don't try to push already-freed buffers 2011-12-25 14:23:29 +00:00
flx various: fix pad template leaks 2011-11-28 13:30:27 +00:00
goom various: fix pad template leaks 2011-11-28 13:30:27 +00:00
goom2k1 various: fix pad template leaks 2011-11-28 13:30:27 +00:00
icydemux various: fix pad template leaks 2011-11-28 13:30:27 +00:00
id3demux various: fix pad template leaks 2011-11-28 13:30:27 +00:00
imagefreeze Suppress deprecation warnings in selected files, for g_static_rec_mutex_* mostly 2011-12-12 09:46:27 +00:00
interleave interleave: port to GstCollectPads2 2011-12-14 18:55:36 +00:00
isomp4 qtmux: use GstCollectPads2 buffer callback and running time clipper 2011-12-19 17:44:57 +01:00
law various: fix pad template leaks 2011-11-28 13:30:27 +00:00
level various: fix pad template leaks 2011-11-28 13:30:27 +00:00
matroska matroskademux: do not consider duration of non-finalized file 2011-12-21 18:14:26 +01:00
median various: fix pad template leaks 2011-11-28 13:30:27 +00:00
monoscope various: fix pad template leaks 2011-11-28 13:30:27 +00:00
multifile docs: add add the two enum values that were just added too 2011-12-06 16:47:25 +01:00
multipart multipartmux: port to GstCollectPads2 2011-12-14 19:10:53 +00:00
replaygain various: fix pad template leaks 2011-11-28 13:30:27 +00:00
rtp rtpjpegpay: Ceil jpeg dimensions, instead of floor 2011-12-05 10:48:54 +01:00
rtpmanager Suppress deprecation warnings in selected files, for g_static_rec_mutex_* mostly 2011-12-12 09:46:27 +00:00
rtsp Suppress deprecation warnings in selected files, for g_static_rec_mutex_* mostly 2011-12-12 09:46:27 +00:00
shapewipe Work around deprecated thread API in glib master 2011-12-12 09:46:27 +00:00
smpte smpte: port to GstCollectPads2 2011-12-14 19:13:21 +00:00
spectrum spectrum: avoid crashing by resetting the correct number of channels 2011-08-16 22:44:07 +01:00
udp udpsrc: drop dataless UDP packets 2011-12-27 01:40:34 +00:00
videobox Work around deprecated thread API in glib master 2011-12-12 09:46:27 +00:00
videocrop Work around deprecated thread API in glib master 2011-12-12 09:46:27 +00:00
videofilter various: fix pad template leaks 2011-11-28 13:30:27 +00:00
videomixer Suppress deprecation warnings in selected files, for g_static_rec_mutex_* mostly 2011-12-12 09:46:27 +00:00
wavenc various: fix pad template leaks 2011-11-28 13:30:27 +00:00
wavparse wavparse: Use scale_ceil() functions from core instead of custom ones 2011-12-24 10:57:42 +01:00
y4m various: fix pad template leaks 2011-11-28 13:30:27 +00:00
Makefile.am build: build plugins and examples in parallel where possible 2010-03-29 11:00:57 +01:00