a2dp-source: fix source

Use codec methods. Init codec at start.
Remove rate match until we actually implement this
Add some buffering of packets before we hand them out.
Always simply fill a buffer and hand it out.
don't emit signals when we are following another driver.
Acquire transport as soon as it goes to PENDING.
This commit is contained in:
Wim Taymans 2020-10-19 18:25:52 +02:00
parent d727123b86
commit 6cc3224031
2 changed files with 96 additions and 100 deletions

View file

@ -1164,7 +1164,8 @@ static int impl_clear(struct spa_handle *handle)
{
struct impl *this = (struct impl *) handle;
this->codec->deinit(this->codec_data);
if (this->codec_data)
this->codec->deinit(this->codec_data);
if (this->transport)
spa_hook_remove(&this->transport_listener);
spa_system_close(this->data_system, this->timerfd);