Commit 161310fa authored by Wim Taymans's avatar Wim Taymans
Browse files

bufferlist: update for new API

parent 9f77b02b
...@@ -2427,7 +2427,7 @@ rtp_session_send_rtp (RTPSession * sess, gpointer data, gboolean is_list, ...@@ -2427,7 +2427,7 @@ rtp_session_send_rtp (RTPSession * sess, gpointer data, gboolean is_list,
if (is_list) { if (is_list) {
GstBufferList *blist = GST_BUFFER_LIST_CAST (data); GstBufferList *blist = GST_BUFFER_LIST_CAST (data);
gint i, len = gst_buffer_list_len (blist); gint i, len = gst_buffer_list_length (blist);
valid_packet = TRUE; valid_packet = TRUE;
for (i = 0; i < len; i++) for (i = 0; i < len; i++)
......
...@@ -1234,7 +1234,7 @@ rtp_source_send_rtp (RTPSource * src, gpointer data, gboolean is_list, ...@@ -1234,7 +1234,7 @@ rtp_source_send_rtp (RTPSource * src, gpointer data, gboolean is_list,
gint i; gint i;
/* Each group makes up a network packet. */ /* Each group makes up a network packet. */
packets = gst_buffer_list_len (list); packets = gst_buffer_list_length (list);
for (i = 0, len = 0; i < packets; i++) { for (i = 0, len = 0; i < packets; i++) {
gst_rtp_buffer_map (gst_buffer_list_get (list, i), GST_MAP_READ, &rtp); gst_rtp_buffer_map (gst_buffer_list_get (list, i), GST_MAP_READ, &rtp);
len += gst_rtp_buffer_get_payload_len (&rtp); len += gst_rtp_buffer_get_payload_len (&rtp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment