rtp: cleanups, add _list_get_seq() too
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 18 Jun 2009 17:04:52 +0000 (19:04 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 18 Jun 2009 17:04:52 +0000 (19:04 +0200)
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
gst-libs/gst/rtp/gstrtpbuffer.c

index 21294b9..c4ce069 100644 (file)
@@ -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
index 9fb9672..438b2e7 100644 (file)
@@ -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.
@@ -1116,6 +1116,29 @@ gst_rtp_buffer_list_set_seq (GstBufferList * list, guint16 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.
  *