mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-09 08:21:08 -04:00
module-avb: internal: destroy internal descriptors
This commit is contained in:
parent
a3ce0f3e28
commit
b60623df4d
4 changed files with 13 additions and 16 deletions
|
|
@ -83,7 +83,18 @@ struct server {
|
|||
|
||||
#include "stream.h"
|
||||
|
||||
static inline struct descriptor *server_find_descriptor(struct server *server,
|
||||
static inline void server_destroy_descriptors(struct server *server)
|
||||
{
|
||||
struct descriptor *d, *t;
|
||||
|
||||
spa_list_for_each_safe(d, t, &server->descriptors, link) {
|
||||
free(d->ptr);
|
||||
spa_list_remove(&d->link);
|
||||
free(d);
|
||||
}
|
||||
}
|
||||
|
||||
static inline const struct descriptor *server_find_descriptor(struct server *server,
|
||||
uint16_t type, uint16_t index)
|
||||
{
|
||||
struct descriptor *d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue