Fix errors , now it doesn't complains and compiles, Still need to be fixed problems...
authorAngel Carpintero <ack@telefonica.net>
Fri, 25 Jul 2003 09:04:41 +0000 (09:04 +0000)
committerAngel Carpintero <ack@telefonica.net>
Fri, 25 Jul 2003 09:04:41 +0000 (09:04 +0000)
Original commit message from CVS:
Fix errors , now it doesn't complains and compiles, Still need to be fixed problems with timestamps

gst/tcp/gsttcpsrc.c

index cc7fcfd..9837ea7 100644 (file)
  */
 
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "gsttcpsrc.h"
+#include <unistd.h>
 
 #define TCP_DEFAULT_PORT               4953
 
@@ -184,7 +189,7 @@ gst_tcpsrc_get (GstPad *pad)
   if (select (max_sock+1, &read_fds, NULL, NULL, NULL) > 0) {
     if ((tcpsrc->control_sock != -1) && FD_ISSET (tcpsrc->control_sock, &read_fds)) 
     {
-      guchar *buf;
+      guchar *buf=NULL;
       xmlDocPtr doc;
       GstCaps *caps;