bluetooth/gst: Replace buffer accumulation in adapter with direct pull

Bluetooth codecs should always have fixed in/output and are hence able
to have their results directly read from the codec, instead of
accumulating in a buffer asynchronously that is subsequently only read
in the transcode callback.  The Bluetooth backends calling encode/decode
also expect these fixed buffer sizes.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/494>
This commit is contained in:
Marijn Suijten 2021-01-22 01:33:43 +01:00 committed by Arun Raghavan
parent 201dc6542b
commit 5f37914eb8
2 changed files with 13 additions and 40 deletions

View file

@ -46,7 +46,6 @@ struct gst_info {
/* The appsink element that accumulates encoded/decoded buffers */
GstElement *app_sink;
GstElement *bin;
GstAdapter *sink_adapter;
/* The sink pad to push to-be-encoded/decoded buffers into */
GstPad *pad_sink;