Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

udpsrc: fix valgrind warning

  • Loading branch information...
commit 86cd5bd7f2b0fe5aa594a94536dee0bd7d715798 1 parent b744ad0
@tp-m tp-m authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  gst/udp/gstudpsrc.c
View
3  gst/udp/gstudpsrc.c
@@ -491,7 +491,8 @@ gst_udpsrc_create (GstPushSrc * psrc, GstBuffer ** buf)
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);
Please sign in to comment.
Something went wrong with that request. Please try again.