summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-06-02 19:32:21 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-06-02 19:33:28 +0200
commite7987ed06b257533cc81c51991d7d227c4f14c40 (patch)
tree02bbad6576f8f23bd7e34bc1873fd23fe3a120cc
parentdabddb812605e2b710346863d172049f80629a45 (diff)
vrawpay: trim output buffers
Remove the leftover unused bytes in the output buffer. Fixes #584613
-rw-r--r--gst/rtp/gstrtpvrawpay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpvrawpay.c b/gst/rtp/gstrtpvrawpay.c
index 6faaf26a4..3a98ce787 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);