mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
avtpsrc: Use correct size for provided buffers
Without this patch the following pipeline would send packets containing garbage in the data section. $ gst-launch-1.0 avtpsrc ! avtpsink Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1077>
This commit is contained in:
parent
9b809d4cc3
commit
36006c61e9
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ retry:
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_buffer_set_size (buffer, received);
|
||||||
gst_buffer_unmap (buffer, &map);
|
gst_buffer_unmap (buffer, &map);
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
Loading…
Reference in a new issue