mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
rtp: remove unused field
This commit is contained in:
parent
96faac2891
commit
f548e58385
2 changed files with 3 additions and 5 deletions
|
@ -389,7 +389,6 @@ gst_rtp_buffer_map (GstBuffer * buffer, GstMapFlags flags, GstRTPBuffer * rtp)
|
||||||
rtp->data[2] = NULL;
|
rtp->data[2] = NULL;
|
||||||
rtp->size[2] = 0;
|
rtp->size[2] = 0;
|
||||||
rtp->state = 0;
|
rtp->state = 0;
|
||||||
rtp->n_map = 1;
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
@ -441,7 +440,6 @@ gst_rtp_buffer_unmap (GstRTPBuffer * rtp)
|
||||||
gst_buffer_unmap (rtp->buffer, &rtp->map[i]);
|
gst_buffer_unmap (rtp->buffer, &rtp->map[i]);
|
||||||
}
|
}
|
||||||
rtp->buffer = NULL;
|
rtp->buffer = NULL;
|
||||||
rtp->n_map = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,8 @@ typedef struct _GstRTPBuffer GstRTPBuffer;
|
||||||
* GstRTPBuffer:
|
* GstRTPBuffer:
|
||||||
* @buffer: pointer to RTP buffer
|
* @buffer: pointer to RTP buffer
|
||||||
* @state: internal state
|
* @state: internal state
|
||||||
* @n_map: number of mappings in @map
|
* @data: array of data
|
||||||
|
* @size: array of size
|
||||||
* @map: array of #GstMapInfo
|
* @map: array of #GstMapInfo
|
||||||
*
|
*
|
||||||
* Data structure that points to an RTP packet.
|
* Data structure that points to an RTP packet.
|
||||||
|
@ -53,13 +54,12 @@ struct _GstRTPBuffer
|
||||||
{
|
{
|
||||||
GstBuffer *buffer;
|
GstBuffer *buffer;
|
||||||
guint state;
|
guint state;
|
||||||
guint n_map;
|
|
||||||
gpointer data[4];
|
gpointer data[4];
|
||||||
gsize size[4];
|
gsize size[4];
|
||||||
GstMapInfo map[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} }
|
{ GST_MAP_INFO_INIT, GST_MAP_INFO_INIT, GST_MAP_INFO_INIT, GST_MAP_INFO_INIT} }
|
||||||
|
|
||||||
/* creating buffers */
|
/* creating buffers */
|
||||||
|
|
Loading…
Reference in a new issue