From 8dcb565221f0a650a22e0536d2512b240860d0f8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 19 Jan 2012 09:17:31 +0100 Subject: [PATCH] tcp: work around compiler warnings --- gst/tcp/gsttcpclientsrc.c | 2 ++ gst/tcp/gsttcpserversrc.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gst/tcp/gsttcpclientsrc.c b/gst/tcp/gsttcpclientsrc.c index a666523..6b906f3 100644 --- a/gst/tcp/gsttcpclientsrc.c +++ b/gst/tcp/gsttcpclientsrc.c @@ -231,6 +231,8 @@ gst_tcp_client_src_create (GstPushSrc * psrc, GstBuffer ** outbuf) } else { /* Connection closed */ *outbuf = NULL; + data = NULL; + read = 0; rret = 0; } diff --git a/gst/tcp/gsttcpserversrc.c b/gst/tcp/gsttcpserversrc.c index bdbd641..d983094 100644 --- a/gst/tcp/gsttcpserversrc.c +++ b/gst/tcp/gsttcpserversrc.c @@ -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) { -- 2.7.4