summaryrefslogtreecommitdiffstats
path: root/gst/rtp
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/rtp
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/rtp')
-rw-r--r--gst/rtp/gstrtpmp4vdepay.c3
1 files changed, 1 insertions, 2 deletions
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);
}