From f548e5838546d00141beeaeeb032952d55a020eb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 21 Aug 2012 11:48:33 +0200 Subject: [PATCH] rtp: remove unused field --- gst-libs/gst/rtp/gstrtpbuffer.c | 2 -- gst-libs/gst/rtp/gstrtpbuffer.h | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gst-libs/gst/rtp/gstrtpbuffer.c b/gst-libs/gst/rtp/gstrtpbuffer.c index 46ce71a..cb8237f 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.c +++ b/gst-libs/gst/rtp/gstrtpbuffer.c @@ -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; } diff --git a/gst-libs/gst/rtp/gstrtpbuffer.h b/gst-libs/gst/rtp/gstrtpbuffer.h index 6b6b755..5551c5a 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.h +++ b/gst-libs/gst/rtp/gstrtpbuffer.h @@ -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 */ -- 2.7.4