rtp: remove unused field

This commit is contained in:
Wim Taymans 2012-08-21 11:48:33 +02:00
parent 96faac2891
commit f548e58385
2 changed files with 3 additions and 5 deletions

View file

@ -389,7 +389,6 @@ gst_rtp_buffer_map (GstBuffer * buffer, GstMapFlags flags, GstRTPBuffer * rtp)
rtp->data[2] = NULL;
rtp->size[2] = 0;
rtp->state = 0;
rtp->n_map = 1;
return TRUE;
@ -441,7 +440,6 @@ gst_rtp_buffer_unmap (GstRTPBuffer * rtp)
gst_buffer_unmap (rtp->buffer, &rtp->map[i]);
}
rtp->buffer = NULL;
rtp->n_map = 0;
}

View file

@ -43,7 +43,8 @@ typedef struct _GstRTPBuffer GstRTPBuffer;
* GstRTPBuffer:
* @buffer: pointer to RTP buffer
* @state: internal state
* @n_map: number of mappings in @map
* @data: array of data
* @size: array of size
* @map: array of #GstMapInfo
*
* Data structure that points to an RTP packet.
@ -53,13 +54,12 @@ struct _GstRTPBuffer
{
GstBuffer *buffer;
guint state;
guint n_map;
gpointer data[4];
gsize size[4];
GstMapInfo map[4];
};
#define GST_RTP_BUFFER_INIT { NULL, 0, 0, { NULL, NULL, NULL, NULL}, { 0, 0, 0, 0 }, \
#define GST_RTP_BUFFER_INIT { NULL, 0, { NULL, NULL, NULL, NULL}, { 0, 0, 0, 0 }, \
{ GST_MAP_INFO_INIT, GST_MAP_INFO_INIT, GST_MAP_INFO_INIT, GST_MAP_INFO_INIT} }
/* creating buffers */