ext/mad/gstid3tag.c: Add stdlib.h

Original commit message from CVS:
reviewed by David Schleef
* ext/mad/gstid3tag.c: Add stdlib.h
* gst/rtp/gstrtpgsmenc.c: same
* gst/tags/gstid3tag.c: same
* gst/udp/gstudpsrc.c: (gst_udpsrc_get): Fix GST_DISABLE_LOADSAVE
* gst/tcp/gsttcpsink.c: (gst_tcpsink_sink_link): Adjust
GST_DISABLE_LOADSAVE use.
* gst/udp/gstudpsink.c: (gst_udpsink_sink_link): Likewise.
* gst/tcp/gsttcpsrc.c: (gst_tcpsrc_get): Likewise.
* ext/gnomevfs/gstgnomevfssrc.c: Include <stdlib.h> (needed by
atol(3)).
* sys/oss/gstosselement.h: Include <sys/types.h> (needed for dev_t).
* gst/tags/gstvorbistag.c: Include <stdlib.h> (needed by
strtoul(3)).
* gst/rtp/gstrtpL16enc.c: Include <stdlib.h> (needed by random(3)).
* ext/mad/Makefile.am: (libgstmad_la_CFLAGS): Add $(MAD_CFLAGS)
$(ID3_CFLAGS).
* ext/libfame/Makefile.am: (libgstlibfame_la_CFLAGS): Add
$(LIBFAME_CFLAGS).
This commit is contained in:
David Schleef 2004-04-20 23:03:28 +00:00
parent d9141f9b11
commit 80a61322ef
6 changed files with 39 additions and 4 deletions

View file

@ -1,3 +1,26 @@
2004-04-20 Daniel Gazard <daniel.gazard@epita.fr>
reviewed by David Schleef
* ext/mad/gstid3tag.c: Add stdlib.h
* gst/rtp/gstrtpgsmenc.c: same
* gst/tags/gstid3tag.c: same
* gst/udp/gstudpsrc.c: (gst_udpsrc_get): Fix GST_DISABLE_LOADSAVE
* gst/tcp/gsttcpsink.c: (gst_tcpsink_sink_link): Adjust
GST_DISABLE_LOADSAVE use.
* gst/udp/gstudpsink.c: (gst_udpsink_sink_link): Likewise.
* gst/tcp/gsttcpsrc.c: (gst_tcpsrc_get): Likewise.
* ext/gnomevfs/gstgnomevfssrc.c: Include <stdlib.h> (needed by
atol(3)).
* sys/oss/gstosselement.h: Include <sys/types.h> (needed for dev_t).
* gst/tags/gstvorbistag.c: Include <stdlib.h> (needed by
strtoul(3)).
* gst/rtp/gstrtpL16enc.c: Include <stdlib.h> (needed by random(3)).
* ext/mad/Makefile.am: (libgstmad_la_CFLAGS): Add $(MAD_CFLAGS)
$(ID3_CFLAGS).
* ext/libfame/Makefile.am: (libgstlibfame_la_CFLAGS): Add
$(LIBFAME_CFLAGS).
2004-04-20 David Schleef <ds@schleef.org>
* gst/realmedia/rmdemux.c: This was supposed to part of the

2
common

@ -1 +1 @@
Subproject commit e55182f6eece70ff99e33b9800b27a926670dbdd
Subproject commit 63d93f01177745ba864263f0b6f976212684cb87

View file

@ -34,6 +34,7 @@
#include "gstgnomevfs.h"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>

View file

@ -24,6 +24,7 @@
#endif
#include "gsttageditingprivate.h"
#include <stdlib.h>
#include <string.h>
static const gchar *genres[] = {

View file

@ -155,18 +155,20 @@ static GstPadLinkReturn
gst_tcpsink_sink_link (GstPad * pad, const GstCaps * caps)
{
GstTCPSink *tcpsink;
#ifndef GST_DISABLE_LOADSAVE
struct sockaddr_in serv_addr;
struct in_addr addr;
struct hostent *he;
int fd;
FILE *f;
#ifndef GST_DISABLE_LOADSAVE
xmlDocPtr doc;
#endif
tcpsink = GST_TCPSINK (gst_pad_get_parent (pad));
switch (tcpsink->control) {
#ifndef GST_DISABLE_LOADSAVE
case CONTROL_TCP:
memset (&serv_addr, 0, sizeof (serv_addr));
@ -216,8 +218,9 @@ gst_tcpsink_sink_link (GstPad * pad, const GstCaps * caps)
xmlDocDump (f, doc);
fclose (f);
close (fd);
#endif
break;
#endif
case CONTROL_NONE:
return GST_PAD_LINK_OK;
break;

View file

@ -188,7 +188,10 @@ gst_tcpsrc_get (GstPad * pad)
gint numbytes;
fd_set read_fds;
guint max_sock;
#ifndef GST_DISABLE_LOADSAVE
int ret, client_sock;
#endif
struct sockaddr client_addr;
g_return_val_if_fail (pad != NULL, NULL);
@ -217,8 +220,12 @@ gst_tcpsrc_get (GstPad * pad)
if ((tcpsrc->control_sock != -1)
&& FD_ISSET (tcpsrc->control_sock, &read_fds)) {
guchar *buf = NULL;
#ifndef GST_DISABLE_LOADSAVE
xmlDocPtr doc;
GstCaps *caps;
#endif
switch (tcpsrc->control) {
case CONTROL_TCP: