mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
gst: pool: add explicit remove_buffer method
This is for readability and better control. Make sure we clear out all pointers to anything related to the released pw_buffer, including all the memories.
This commit is contained in:
parent
40fd2553ea
commit
1e2618f314
3 changed files with 18 additions and 5 deletions
|
|
@ -472,11 +472,8 @@ static void
|
|||
on_remove_buffer (void *_data, struct pw_buffer *b)
|
||||
{
|
||||
GstPipeWireSink *pwsink = _data;
|
||||
GstPipeWirePoolData *data = b->user_data;
|
||||
|
||||
GST_LOG_OBJECT (pwsink, "remove buffer");
|
||||
|
||||
gst_buffer_unref (data->buf);
|
||||
GST_DEBUG_OBJECT (pwsink, "remove pw_buffer %p", b);
|
||||
gst_pipewire_pool_remove_buffer (pwsink->pool, b);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue