From 36006c61e9ef2d2c5d6384b1e6d87e9eeb674c55 Mon Sep 17 00:00:00 2001 From: Timo Wischer Date: Wed, 6 Oct 2021 15:54:09 +0200 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/ext/avtp/gstavtpsrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/ext/avtp/gstavtpsrc.c b/subprojects/gst-plugins-bad/ext/avtp/gstavtpsrc.c index 07a571db1c..7650f0ad0f 100644 --- a/subprojects/gst-plugins-bad/ext/avtp/gstavtpsrc.c +++ b/subprojects/gst-plugins-bad/ext/avtp/gstavtpsrc.c @@ -303,6 +303,7 @@ retry: return GST_FLOW_ERROR; } + gst_buffer_set_size (buffer, received); gst_buffer_unmap (buffer, &map); return GST_FLOW_OK;