mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vrawpay: trim output buffers
Remove the leftover unused bytes in the output buffer. Fixes #584613
This commit is contained in:
parent
dabddb8126
commit
e7987ed06b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue