a2dp: pull more data when needed

When we still have a buffer but it does not have enough data to encode a
frame, ask for more buffers.
This commit is contained in:
Wim Taymans 2019-07-12 09:55:55 +02:00
parent 01e56c45ac
commit 356f1242be
2 changed files with 10 additions and 3 deletions

View file

@ -1149,6 +1149,8 @@ impl_init(const struct spa_handle_factory *factory,
SPA_NODE_CHANGE_MASK_PROPS |
SPA_NODE_CHANGE_MASK_PARAMS;
this->info = SPA_NODE_INFO_INIT();
this->info.max_input_ports = 0;
this->info.max_output_ports = 1;
this->info.flags = SPA_NODE_FLAG_RT;
this->params[0] = SPA_PARAM_INFO(SPA_PARAM_PropInfo, SPA_PARAM_INFO_READ);
this->params[1] = SPA_PARAM_INFO(SPA_PARAM_Props, SPA_PARAM_INFO_READWRITE);