rtpbuffer: Fix compilation issues with gcc 4.6.1

This commit is contained in:
Edward Hervey 2011-11-04 08:41:00 +01:00
parent 8126f72e78
commit 771cbbb17c

View file

@ -671,8 +671,9 @@ gst_rtp_buffer_get_extension_data (GstRTPBuffer * rtp, guint16 * bits,
*bits = GST_READ_UINT16_BE (pdata); *bits = GST_READ_UINT16_BE (pdata);
if (wordlen) if (wordlen)
*wordlen = GST_READ_UINT16_BE (pdata + 2); *wordlen = GST_READ_UINT16_BE (pdata + 2);
pdata += 4;
if (data) if (data)
*data = pdata + 4; *data = (gpointer *) pdata;
return TRUE; return TRUE;
} }
@ -1216,13 +1217,13 @@ gst_rtp_buffer_get_extension_twobytes_header (GstRTPBuffer * rtp,
guint8 * appbits, guint8 id, guint nth, gpointer * data, guint * size) guint8 * appbits, guint8 id, guint nth, gpointer * data, guint * size)
{ {
guint16 bits; guint16 bits;
guint8 *pdata; guint8 *pdata = NULL;
guint wordlen; guint wordlen;
guint bytelen; guint bytelen;
gulong offset = 0; gulong offset = 0;
guint count = 0; guint count = 0;
if (!gst_rtp_buffer_get_extension_data (rtp, &bits, (gpointer) & pdata, if (!gst_rtp_buffer_get_extension_data (rtp, &bits, (gpointer *) & pdata,
&wordlen)) &wordlen))
return FALSE; return FALSE;
@ -1333,7 +1334,7 @@ gst_rtp_buffer_add_extension_onebyte_header (GstRTPBuffer * rtp, guint8 id,
gpointer data, guint size) gpointer data, guint size)
{ {
guint16 bits; guint16 bits;
guint8 *pdata; guint8 *pdata = 0;
guint wordlen; guint wordlen;
gboolean has_bit; gboolean has_bit;
@ -1454,7 +1455,7 @@ gst_rtp_buffer_add_extension_twobytes_header (GstRTPBuffer * rtp,
guint8 appbits, guint8 id, gpointer data, guint size) guint8 appbits, guint8 id, gpointer data, guint size)
{ {
guint16 bits; guint16 bits;
guint8 *pdata; guint8 *pdata = 0;
guint wordlen; guint wordlen;
gboolean has_bit; gboolean has_bit;