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:
parent
d9141f9b11
commit
80a61322ef
23
ChangeLog
23
ChangeLog
@ -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>
|
2004-04-20 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst/realmedia/rmdemux.c: This was supposed to part of the
|
* gst/realmedia/rmdemux.c: This was supposed to part of the
|
||||||
|
2
common
2
common
@ -1 +1 @@
|
|||||||
Subproject commit e55182f6eece70ff99e33b9800b27a926670dbdd
|
Subproject commit 63d93f01177745ba864263f0b6f976212684cb87
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#include "gstgnomevfs.h"
|
#include "gstgnomevfs.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gsttageditingprivate.h"
|
#include "gsttageditingprivate.h"
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static const gchar *genres[] = {
|
static const gchar *genres[] = {
|
||||||
|
@ -155,18 +155,20 @@ static GstPadLinkReturn
|
|||||||
gst_tcpsink_sink_link (GstPad * pad, const GstCaps * caps)
|
gst_tcpsink_sink_link (GstPad * pad, const GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstTCPSink *tcpsink;
|
GstTCPSink *tcpsink;
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_LOADSAVE
|
||||||
struct sockaddr_in serv_addr;
|
struct sockaddr_in serv_addr;
|
||||||
struct in_addr addr;
|
struct in_addr addr;
|
||||||
struct hostent *he;
|
struct hostent *he;
|
||||||
int fd;
|
int fd;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
#ifndef GST_DISABLE_LOADSAVE
|
|
||||||
xmlDocPtr doc;
|
xmlDocPtr doc;
|
||||||
|
#endif
|
||||||
|
|
||||||
tcpsink = GST_TCPSINK (gst_pad_get_parent (pad));
|
tcpsink = GST_TCPSINK (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
switch (tcpsink->control) {
|
switch (tcpsink->control) {
|
||||||
|
#ifndef GST_DISABLE_LOADSAVE
|
||||||
case CONTROL_TCP:
|
case CONTROL_TCP:
|
||||||
memset (&serv_addr, 0, sizeof (serv_addr));
|
memset (&serv_addr, 0, sizeof (serv_addr));
|
||||||
|
|
||||||
@ -216,8 +218,9 @@ gst_tcpsink_sink_link (GstPad * pad, const GstCaps * caps)
|
|||||||
xmlDocDump (f, doc);
|
xmlDocDump (f, doc);
|
||||||
fclose (f);
|
fclose (f);
|
||||||
close (fd);
|
close (fd);
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#endif
|
||||||
case CONTROL_NONE:
|
case CONTROL_NONE:
|
||||||
return GST_PAD_LINK_OK;
|
return GST_PAD_LINK_OK;
|
||||||
break;
|
break;
|
||||||
|
@ -188,7 +188,10 @@ gst_tcpsrc_get (GstPad * pad)
|
|||||||
gint numbytes;
|
gint numbytes;
|
||||||
fd_set read_fds;
|
fd_set read_fds;
|
||||||
guint max_sock;
|
guint max_sock;
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_LOADSAVE
|
||||||
int ret, client_sock;
|
int ret, client_sock;
|
||||||
|
#endif
|
||||||
struct sockaddr client_addr;
|
struct sockaddr client_addr;
|
||||||
|
|
||||||
g_return_val_if_fail (pad != NULL, NULL);
|
g_return_val_if_fail (pad != NULL, NULL);
|
||||||
@ -217,8 +220,12 @@ gst_tcpsrc_get (GstPad * pad)
|
|||||||
if ((tcpsrc->control_sock != -1)
|
if ((tcpsrc->control_sock != -1)
|
||||||
&& FD_ISSET (tcpsrc->control_sock, &read_fds)) {
|
&& FD_ISSET (tcpsrc->control_sock, &read_fds)) {
|
||||||
guchar *buf = NULL;
|
guchar *buf = NULL;
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_LOADSAVE
|
||||||
xmlDocPtr doc;
|
xmlDocPtr doc;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
switch (tcpsrc->control) {
|
switch (tcpsrc->control) {
|
||||||
case CONTROL_TCP:
|
case CONTROL_TCP:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user