From 457d39075c856815f6ea8966d4274666b2224cee Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 18 Jun 2009 19:04:52 +0200 Subject: [PATCH] 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 --- docs/libs/gst-plugins-base-libs-sections.txt | 18 ++++++++++++ gst-libs/gst/rtp/gstrtpbuffer.c | 31 +++++++++++++++++--- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index 21294b94fc..c4ce069177 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -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 + # rtsp diff --git a/gst-libs/gst/rtp/gstrtpbuffer.c b/gst-libs/gst/rtp/gstrtpbuffer.c index 9fb96726fe..438b2e7cb4 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.c +++ b/gst-libs/gst/rtp/gstrtpbuffer.c @@ -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. *