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:
George Kiagiadakis 2024-05-28 16:47:15 +03:00
parent 40fd2553ea
commit 1e2618f314
3 changed files with 18 additions and 5 deletions

View file

@ -66,6 +66,7 @@ GType gst_pipewire_pool_get_type (void);
GstPipeWirePool * gst_pipewire_pool_new (void);
void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *buffer);
void gst_pipewire_pool_remove_buffer (GstPipeWirePool *pool, struct pw_buffer *buffer);
GstPipeWirePoolData *gst_pipewire_pool_get_data (GstBuffer *buffer);