mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 10:38:08 +02:00
spa-pod: don't use assertion macro in code that needs to run always
This commit is contained in:
parent
9b8987e8c0
commit
6f3a307e6f
1 changed files with 2 additions and 1 deletions
|
|
@ -2743,7 +2743,8 @@ wp_spa_pod_parser_get_valist (WpSpaPodParser *self, va_list args)
|
|||
break;
|
||||
|
||||
if (g_str_has_prefix (key_name, "id-")) {
|
||||
g_return_val_if_fail (sscanf (key_name, "id-%08x", &key_id) == 1, FALSE);
|
||||
if (sscanf (key_name, "id-%08x", &key_id) != 1)
|
||||
return FALSE;
|
||||
} else {
|
||||
key = wp_spa_id_table_find_value_from_short_name (table, key_name);
|
||||
g_return_val_if_fail (key != NULL, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue