summaryrefslogtreecommitdiffstats
path: root/gst/udp
diff options
context:
space:
mode:
authorJens Granseuer <jensgr@gmx.net>2006-01-23 09:59:03 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-01-23 09:59:03 +0000
commitf42029d79ffe2ff83bc8f9776c70870a67434435 (patch)
tree2d9e66b1a907f3d9e2630762d655326d1fcd5488 /gst/udp
parent2ecee9a43d8e420eb21078711e766c5500bf8c04 (diff)
C89 fixes: declare variables at the beginning of a block and
Original commit message from CVS: * ext/libpng/gstpngenc.c: (gst_pngenc_chain): * gst/avi/gstavidemux.c: (gst_avi_demux_invert): * gst/rtp/gstrtpmp4vdepay.c: (gst_rtp_mp4v_depay_setcaps): * gst/rtsp/sdpmessage.h: * gst/udp/gstdynudpsink.c: (gst_dynudpsink_render): * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_get_stats): C89 fixes: declare variables at the beginning of a block and make gcc-2.9x happy (#328264; patch by: Jens Granseuer <jensgr at gmx dot net>).
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstdynudpsink.c4
-rw-r--r--gst/udp/gstmultiudpsink.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/gst/udp/gstdynudpsink.c b/gst/udp/gstdynudpsink.c
index e7be3b22..26680168 100644
--- a/gst/udp/gstdynudpsink.c
+++ b/gst/udp/gstdynudpsink.c
@@ -187,6 +187,8 @@ gst_dynudpsink_render (GstBaseSink * bsink, GstBuffer * buffer)
guint8 *data;
GstNetBuffer *netbuf;
struct sockaddr_in theiraddr;
+ guint16 destport;
+ guint32 destaddr;
memset (&theiraddr, 0, sizeof (theiraddr));
@@ -203,8 +205,6 @@ gst_dynudpsink_render (GstBaseSink * bsink, GstBuffer * buffer)
data = GST_BUFFER_DATA (netbuf);
GST_DEBUG ("about to send %d bytes", size);
- guint16 destport;
- guint32 destaddr;
// let's get the address from the netbuffer
gst_netaddress_get_ip4_address (&netbuf->to, &destaddr, &destport);
diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c
index ed9be9e1..bcc81128 100644
--- a/gst/udp/gstmultiudpsink.c
+++ b/gst/udp/gstmultiudpsink.c
@@ -462,10 +462,10 @@ gst_multiudpsink_get_stats (GstMultiUDPSink * sink, const gchar * host,
find = g_list_find_custom (sink->clients, &udpclient,
(GCompareFunc) client_compare);
if (find) {
- client = (GstUDPClient *) find->data;
-
GValue value = { 0 };
+ client = (GstUDPClient *) find->data;
+
/* Result is a value array of (bytes_sent, packets_sent,
* connect_time, disconnect_time), all as uint64 */
result = g_value_array_new (4);