From e7987ed06b257533cc81c51991d7d227c4f14c40 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 2 Jun 2009 19:32:21 +0200 Subject: [PATCH] vrawpay: trim output buffers Remove the leftover unused bytes in the output buffer. Fixes #584613 --- gst/rtp/gstrtpvrawpay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/rtp/gstrtpvrawpay.c b/gst/rtp/gstrtpvrawpay.c index 6faaf26a40..3a98ce7872 100644 --- a/gst/rtp/gstrtpvrawpay.c +++ b/gst/rtp/gstrtpvrawpay.c @@ -602,6 +602,10 @@ gst_rtp_vraw_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer) GST_LOG_OBJECT (rtpvrawpay, "frame complete, set marker"); gst_rtp_buffer_set_marker (out, TRUE); } + if (left > 0) { + GST_LOG_OBJECT (rtpvrawpay, "we have %u bytes left", left); + GST_BUFFER_SIZE (out) -= left; + } /* push buffer */ ret = gst_basertppayload_push (payload, out);