mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
bufferlist: update for new API
This commit is contained in:
parent
9f77b02b15
commit
161310fa23
2 changed files with 2 additions and 2 deletions
|
@ -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++)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue