mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
a2dp: deinit codec_data in stop
This commit is contained in:
parent
8bf0b7b4db
commit
73b13e8ad5
2 changed files with 8 additions and 0 deletions
|
|
@ -711,6 +711,10 @@ static int do_stop(struct impl *this)
|
||||||
if (this->transport)
|
if (this->transport)
|
||||||
res = spa_bt_transport_release(this->transport);
|
res = spa_bt_transport_release(this->transport);
|
||||||
|
|
||||||
|
if (this->codec_data)
|
||||||
|
this->codec->deinit(this->codec_data);
|
||||||
|
this->codec_data = NULL;
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -592,6 +592,10 @@ static int do_stop(struct impl *this)
|
||||||
else
|
else
|
||||||
res = 0;
|
res = 0;
|
||||||
|
|
||||||
|
if (this->codec_data)
|
||||||
|
this->codec->deinit(this->codec_data);
|
||||||
|
this->codec_data = NULL;
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue