From f42029d79ffe2ff83bc8f9776c70870a67434435 Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Mon, 23 Jan 2006 09:59:03 +0000 Subject: 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 ). --- gst/udp/gstdynudpsink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst/udp/gstdynudpsink.c') 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); -- cgit