From c81910a51c6817aac4abd6e15ad6f649bdd3a94d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 17 Jan 2025 12:19:07 +0100 Subject: [PATCH] gst: use gst_buffer_get_size() to get the buffer size _get_sizes() contains the padding and we don't want to copy that. --- src/gst/gstpipewiresink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gst/gstpipewiresink.c b/src/gst/gstpipewiresink.c index 17d9e9abd..43a5339d1 100644 --- a/src/gst/gstpipewiresink.c +++ b/src/gst/gstpipewiresink.c @@ -861,8 +861,7 @@ gst_pipewire_sink_render (GstBaseSink * bsink, GstBuffer * buffer) if (buffer->pool != GST_BUFFER_POOL_CAST (pwsink->stream->pool)) { gsize offset = 0; - gsize buf_size = 0; - gst_buffer_get_sizes (buffer, NULL, &buf_size); + gsize buf_size = gst_buffer_get_size (buffer); /* For some streams, the buffer size is changed and may exceed the acquired * buffer size which is acquired from the pool of pipewiresink. Need split