tcp: work around compiler warnings
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 19 Jan 2012 08:17:31 +0000 (09:17 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 19 Jan 2012 08:17:31 +0000 (09:17 +0100)
gst/tcp/gsttcpclientsrc.c
gst/tcp/gsttcpserversrc.c

index a666523..6b906f3 100644 (file)
@@ -231,6 +231,8 @@ gst_tcp_client_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
   } else {
     /* Connection closed */
     *outbuf = NULL;
+    data = NULL;
+    read = 0;
     rret = 0;
   }
 
index bdbd641..d983094 100644 (file)
@@ -227,6 +227,8 @@ gst_tcp_server_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
     /* Connection closed */
     rret = 0;
     *outbuf = NULL;
+    data = NULL;
+    read = 0;
   }
 
   if (rret == 0) {