mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
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:
parent
d727123b86
commit
6cc3224031
2 changed files with 96 additions and 100 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue