bufferlist: update for new API

This commit is contained in:
Wim Taymans 2011-10-29 08:25:27 +02:00
parent 9f77b02b15
commit 161310fa23
2 changed files with 2 additions and 2 deletions

View file

@ -2427,7 +2427,7 @@ rtp_session_send_rtp (RTPSession * sess, gpointer data, gboolean is_list,
if (is_list) {
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;
for (i = 0; i < len; i++)

View file

@ -1234,7 +1234,7 @@ rtp_source_send_rtp (RTPSource * src, gpointer data, gboolean is_list,
gint i;
/* 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++) {
gst_rtp_buffer_map (gst_buffer_list_get (list, i), GST_MAP_READ, &rtp);
len += gst_rtp_buffer_get_payload_len (&rtp);