From: Wim Taymans Date: Tue, 21 Aug 2012 09:48:33 +0000 (+0200) Subject: rtp: remove unused field X-Git-Tag: RELEASE-0.11.94~105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f548e5838546d00141beeaeeb032952d55a020eb;p=platform%2Fupstream%2Fgst-plugins-base.git rtp: remove unused field --- 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 */