summaryrefslogtreecommitdiff
path: root/gst/dccp
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-03-06 14:41:00 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-03-06 14:41:00 +0100
commit21ddc28760f9ba29a137183eb49dcaad50c285b2 (patch)
tree4caa6d5aebc12e4f84d65e5da374208a2f861e3b /gst/dccp
parente214b31f5cd28ed0220da62949fdb10b5fb91d12 (diff)
downloadgstreamer-plugins-bad-21ddc28760f9ba29a137183eb49dcaad50c285b2.tar.gz
dccp: Fix 'comparison of unsigned expression < 0 is always false' compiler warning
Diffstat (limited to 'gst/dccp')
-rw-r--r--gst/dccp/gstdccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/dccp/gstdccp.c b/gst/dccp/gstdccp.c
index af652f2de..8a80db416 100644
--- a/gst/dccp/gstdccp.c
+++ b/gst/dccp/gstdccp.c
@@ -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.",