mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
gst: use gst_buffer_get_size() to get the buffer size
_get_sizes() contains the padding and we don't want to copy that.
This commit is contained in:
parent
86e7429039
commit
c81910a51c
1 changed files with 1 additions and 2 deletions
|
|
@ -861,8 +861,7 @@ gst_pipewire_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
|
||||||
|
|
||||||
if (buffer->pool != GST_BUFFER_POOL_CAST (pwsink->stream->pool)) {
|
if (buffer->pool != GST_BUFFER_POOL_CAST (pwsink->stream->pool)) {
|
||||||
gsize offset = 0;
|
gsize offset = 0;
|
||||||
gsize buf_size = 0;
|
gsize buf_size = gst_buffer_get_size (buffer);
|
||||||
gst_buffer_get_sizes (buffer, NULL, &buf_size);
|
|
||||||
|
|
||||||
/* For some streams, the buffer size is changed and may exceed the acquired
|
/* 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
|
* buffer size which is acquired from the pool of pipewiresink. Need split
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue