diff --git a/gst/rtp/gstrtptheorapay.c b/gst/rtp/gstrtptheorapay.c index 702483560d..cf5c485522 100644 --- a/gst/rtp/gstrtptheorapay.c +++ b/gst/rtp/gstrtptheorapay.c @@ -708,7 +708,7 @@ gst_rtp_theora_pay_payload_buffer (GstRtpTheoraPay * rtptheorapay, guint8 TDT, for (l = rtptheorapay->headers; l; l = l->next) rtptheorapay->packet_buffers = g_list_prepend (rtptheorapay->packet_buffers, - gst_buffer_ref (buffer)); + gst_buffer_ref (l->data)); } /* only first (only) configuration cuts length field */ diff --git a/gst/rtp/gstrtpvorbispay.c b/gst/rtp/gstrtpvorbispay.c index 3bc1c6fe2d..bd8ee416d3 100644 --- a/gst/rtp/gstrtpvorbispay.c +++ b/gst/rtp/gstrtpvorbispay.c @@ -684,7 +684,7 @@ gst_rtp_vorbis_pay_payload_buffer (GstRtpVorbisPay * rtpvorbispay, guint8 VDT, for (l = rtpvorbispay->headers; l; l = l->next) rtpvorbispay->packet_buffers = g_list_prepend (rtpvorbispay->packet_buffers, - gst_buffer_ref (buffer)); + gst_buffer_ref (l->data)); } /* only first (only) configuration cuts length field */