gst: don't use bufferpool for audio by default

Deprecate the `always-copy` property in pipewiresrc and use the new
property `use-bufferpool` in both pipewiresrc and pipewiresink to
specify whether to use the gstpipewirepool or not.

The gstpipewirepool is used for video by default unless `use-bufferpool`
is set to `false` and it is not used for audio by default unless
`use-bufferpool` is set to `true`
This commit is contained in:
Taruntej Kanakamalla 2025-01-24 21:07:55 +05:30 committed by Wim Taymans
parent 1e09827953
commit 333b5aaa36
5 changed files with 75 additions and 9 deletions

View file

@ -36,7 +36,7 @@ struct _GstPipeWireSrc {
GstPipeWireStream *stream;
/*< private >*/
gboolean always_copy;
gint use_bufferpool;
gint min_buffers;
gint max_buffers;
gboolean resend_last;