mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -04:00
types: add function to convert audio channel short name to type
Move some functions around for this
This commit is contained in:
parent
b5cccdb382
commit
41f9abc733
5 changed files with 27 additions and 9 deletions
|
|
@ -39,10 +39,7 @@ static inline const struct spa_type_info *spa_debug_type_find(const struct spa_t
|
|||
|
||||
static inline const char *spa_debug_type_short_name(const char *name)
|
||||
{
|
||||
const char *h;
|
||||
if ((h = strrchr(name, ':')) != NULL)
|
||||
name = h + 1;
|
||||
return name;
|
||||
return spa_type_short_name(name);
|
||||
}
|
||||
|
||||
static inline const char *spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue