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/rtp/gstrtpmp4vdepay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gst/rtp') diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c index 551049b7..3582a302 100644 --- a/gst/rtp/gstrtpmp4vdepay.c +++ b/gst/rtp/gstrtpmp4vdepay.c @@ -132,13 +132,12 @@ gst_rtp_mp4v_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps) GstRtpMP4VDepay *rtpmp4vdepay; GstCaps *srccaps; const gchar *str; + gint clock_rate = 90000; /* default */ rtpmp4vdepay = GST_RTP_MP4V_DEPAY (depayload); structure = gst_caps_get_structure (caps, 0); - gint clock_rate = 90000; // default - if (gst_structure_has_field (structure, "clock-rate")) { gst_structure_get_int (structure, "clock-rate", &clock_rate); } -- cgit