projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dabddb8
)
vrawpay: trim output buffers
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 2 Jun 2009 17:32:21 +0000
(19:32 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 2 Jun 2009 17:33:28 +0000
(19:33 +0200)
Remove the leftover unused bytes in the output buffer.
Fixes #584613
gst/rtp/gstrtpvrawpay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpvrawpay.c
b/gst/rtp/gstrtpvrawpay.c
index
6faaf26
..
3a98ce7
100644
(file)
--- 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);