types: add function to convert audio channel short name to type

Move some functions around for this
This commit is contained in:
Wim Taymans 2024-09-16 13:27:17 +02:00
parent b5cccdb382
commit 41f9abc733
5 changed files with 27 additions and 9 deletions

View file

@ -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)