fix compiler warnings

This commit is contained in:
Matej Knopp 2012-01-26 03:29:28 -05:00 committed by Wim Taymans
parent dc3beab0ab
commit d7695bb67d

View file

@ -503,7 +503,7 @@ receive_error:
return GST_FLOW_FLUSHING; return GST_FLOW_FLUSHING;
} else { } else {
GST_ELEMENT_ERROR (udpsrc, RESOURCE, READ, (NULL), GST_ELEMENT_ERROR (udpsrc, RESOURCE, READ, (NULL),
("receive error %d: %s", ret, err->message)); ("receive error %" G_GSSIZE_FORMAT ": %s", ret, err->message));
g_clear_error (&err); g_clear_error (&err);
return GST_FLOW_ERROR; return GST_FLOW_ERROR;
} }
@ -525,7 +525,7 @@ gst_udpsrc_set_uri (GstUDPSrc * src, const gchar * uri, GError ** error)
if (!gst_udp_parse_uri (uri, &host, &port)) if (!gst_udp_parse_uri (uri, &host, &port))
goto wrong_uri; goto wrong_uri;
if (port == -1) if (port == (guint16) -1)
port = UDP_DEFAULT_PORT; port = UDP_DEFAULT_PORT;
g_free (src->host); g_free (src->host);