summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-10-04 09:39:59 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-10-04 09:39:59 +0200
commita4c27169b68100e61cf62dadbca3a451796fdf27 (patch)
treebfc4496b58838eb6050acd075d424c9414bc4415
parentc1877deee0b5c1175769351d3872f22d937cf88b (diff)
rtp: Fix unitialized compiler warnings on OS X build bot
These warnings are wrong though, the variables are only used in the cases where they *are* initialized by the bit reader.
-rw-r--r--gst/rtp/gstrtpmp4gpay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c
index cd988c80c..81e6f9b86 100644
--- a/gst/rtp/gstrtpmp4gpay.c
+++ b/gst/rtp/gstrtpmp4gpay.c
@@ -179,9 +179,9 @@ gst_rtp_mp4g_pay_parse_audio_config (GstRtpMP4GPay * rtpmp4gpay,
{
guint8 *data;
guint size;
- guint8 objectType;
- guint8 samplingIdx;
- guint8 channelCfg;
+ guint8 objectType = 0;
+ guint8 samplingIdx = 0;
+ guint8 channelCfg = 0;
GstBitReader br;
data = GST_BUFFER_DATA (buffer);
@@ -208,7 +208,7 @@ gst_rtp_mp4g_pay_parse_audio_config (GstRtpMP4GPay * rtpmp4gpay,
/* rtp rate depends on sampling rate of the audio */
if (samplingIdx == 15) {
- guint32 rate;
+ guint32 rate = 0;
/* index of 15 means we get the rate in the next 24 bits */
if (!gst_bit_reader_get_bits_uint32 (&br, &rate, 24))
@@ -230,7 +230,7 @@ gst_rtp_mp4g_pay_parse_audio_config (GstRtpMP4GPay * rtpmp4gpay,
case 6:
case 7:
{
- guint8 frameLenFlag;
+ guint8 frameLenFlag = 0;
if (gst_bit_reader_get_bits_uint8 (&br, &frameLenFlag, 1))
if (frameLenFlag)