diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-12-27 11:50:03 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-12-27 11:54:10 +0000 |
commit | e0019fc29eb73f6f3248a0401f4ae59f99119533 (patch) | |
tree | cc91f94b6c0722046fb45df2fe0bd4403918f29f | |
parent | eb9f47c704e277debe92e9643609608b67a25e82 (diff) |
udpsrc: fix valgrind warning
https://bugzilla.gnome.org/show_bug.cgi?id=666644
-rw-r--r-- | gst/udp/gstudpsrc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index dce2c9981..3377df24f 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -491,7 +491,8 @@ retry: if (G_UNLIKELY (!readsize)) { /* try to read a packet (and it will be ignored), * in case a packet with no data arrived */ - recvfrom (udpsrc->sock.fd, (char *)&slen, 0, 0, &sa.sa, &slen); + slen = sizeof (sa); + recvfrom (udpsrc->sock.fd, (char *) &slen, 0, 0, &sa.sa, &slen); /* clear any error, in case a poll error occurred */ clear_error (udpsrc); |