mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
udpsrc: fix valgrind warning
https://bugzilla.gnome.org/show_bug.cgi?id=666644
This commit is contained in:
parent
b744ad03cc
commit
86cd5bd7f2
1 changed files with 2 additions and 1 deletions
|
@ -491,7 +491,8 @@ retry:
|
||||||
if (G_UNLIKELY (!readsize)) {
|
if (G_UNLIKELY (!readsize)) {
|
||||||
/* try to read a packet (and it will be ignored),
|
/* try to read a packet (and it will be ignored),
|
||||||
* in case a packet with no data arrived */
|
* 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 any error, in case a poll error occurred */
|
||||||
clear_error (udpsrc);
|
clear_error (udpsrc);
|
||||||
|
|
Loading…
Reference in a new issue