dccp: Fix 'comparison of unsigned expression < 0 is always false' compiler warning

This commit is contained in:
Sebastian Dröge 2012-03-06 14:41:00 +01:00
parent e214b31f5c
commit 21ddc28760

View file

@ -366,7 +366,7 @@ gst_dccp_socket_write (GstElement * element, int socket, const void *buf,
bytes_written += wrote;
}
if (bytes_written < 0)
if (wrote < 0)
GST_WARNING ("Error while writing.");
else
GST_LOG_OBJECT (element, "Wrote %" G_GSIZE_FORMAT " bytes succesfully.",