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:
Timo Wischer 2021-10-06 15:54:09 +02:00 committed by GStreamer Marge Bot
parent 9b809d4cc3
commit 36006c61e9

View file

@ -303,6 +303,7 @@ retry:
return GST_FLOW_ERROR;
}
gst_buffer_set_size (buffer, received);
gst_buffer_unmap (buffer, &map);
return GST_FLOW_OK;