mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
rtp: cleanups, add _list_get_seq() too
Clean up the docs a little. Add missing _list_get_seq method. Add new symbols to the docs
This commit is contained in:
parent
e2ccc1ee39
commit
457d39075c
2 changed files with 45 additions and 4 deletions
|
@ -1199,6 +1199,24 @@ gst_rtp_buffer_get_payload
|
|||
gst_rtp_buffer_default_clock_rate
|
||||
gst_rtp_buffer_compare_seqnum
|
||||
gst_rtp_buffer_ext_timestamp
|
||||
gst_rtp_buffer_set_extension_data
|
||||
|
||||
gst_rtp_buffer_list_validate
|
||||
|
||||
gst_rtp_buffer_list_get_payload_len
|
||||
|
||||
gst_rtp_buffer_list_get_payload_type
|
||||
gst_rtp_buffer_list_set_payload_type
|
||||
|
||||
gst_rtp_buffer_list_get_seq
|
||||
gst_rtp_buffer_list_set_seq
|
||||
|
||||
gst_rtp_buffer_list_get_ssrc
|
||||
gst_rtp_buffer_list_set_ssrc
|
||||
|
||||
gst_rtp_buffer_list_get_timestamp
|
||||
gst_rtp_buffer_list_set_timestamp
|
||||
|
||||
</SECTION>
|
||||
|
||||
# rtsp
|
||||
|
|
|
@ -822,7 +822,7 @@ invalid_list:
|
|||
|
||||
/**
|
||||
* gst_rtp_buffer_list_get_ssrc:
|
||||
* @list: the list
|
||||
* @list: the buffer list
|
||||
*
|
||||
* Get the SSRC of the first RTP packet in @list.
|
||||
* All RTP packets within @list have the same SSRC.
|
||||
|
@ -1017,7 +1017,7 @@ gst_rtp_buffer_get_payload_type (GstBuffer * buffer)
|
|||
|
||||
/**
|
||||
* gst_rtp_buffer_list_get_payload_type:
|
||||
* @list: the list
|
||||
* @list: the buffer list
|
||||
*
|
||||
* Get the payload type of the first RTP packet in @list.
|
||||
* All packets in @list should have the same payload type.
|
||||
|
@ -1115,6 +1115,29 @@ gst_rtp_buffer_list_set_seq (GstBufferList * list, guint16 seq)
|
|||
return seq;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_rtp_buffer_list_get_seq:
|
||||
* @list: the buffer list
|
||||
*
|
||||
* Get the sequence number of the first RTP packet in @list.
|
||||
* All packets within @list have the same sequence number.
|
||||
*
|
||||
* Returns: The seq number
|
||||
*
|
||||
* Since: 0.10.24
|
||||
*/
|
||||
guint16
|
||||
gst_rtp_buffer_list_get_seq (GstBufferList * list)
|
||||
{
|
||||
guint8 *data;
|
||||
|
||||
data = gst_rtp_buffer_list_get_data (list);
|
||||
g_return_val_if_fail (data != NULL, 0);
|
||||
|
||||
return g_ntohl (GST_RTP_HEADER_SEQ (data));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gst_rtp_buffer_get_timestamp:
|
||||
* @buffer: the buffer
|
||||
|
@ -1131,7 +1154,7 @@ gst_rtp_buffer_get_timestamp (GstBuffer * buffer)
|
|||
|
||||
/**
|
||||
* gst_rtp_buffer_list_get_timestamp:
|
||||
* @list: the list
|
||||
* @list: the buffer list
|
||||
*
|
||||
* Get the timestamp of the first RTP packet in @list.
|
||||
* All packets within @list have the same timestamp.
|
||||
|
@ -1265,7 +1288,7 @@ gst_rtp_buffer_get_payload_len (GstBuffer * buffer)
|
|||
|
||||
/**
|
||||
* gst_rtp_buffer_list_get_payload_len:
|
||||
* @buffer: the buffer
|
||||
* @list: the buffer list
|
||||
*
|
||||
* Get the length of the payload of the RTP packet in @list.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue