mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 13:38:02 +02:00
spa-pod: fix parser to be able to collect IDs as strings ('K')
This commit is contained in:
parent
18ea9606d2
commit
9b8987e8c0
1 changed files with 8 additions and 1 deletions
|
|
@ -2708,6 +2708,13 @@ wp_spa_pod_parser_get (WpSpaPodParser *self, ...)
|
|||
return res;
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
wp_spa_pod_parser_can_collect (const struct spa_pod *pod, char format)
|
||||
{
|
||||
format = (format == 'K') ? 'I' : format;
|
||||
return spa_pod_parser_can_collect (pod, format);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief This is the `va_list` version of wp_spa_pod_parser_get()
|
||||
*
|
||||
|
|
@ -2758,7 +2765,7 @@ wp_spa_pod_parser_get_valist (WpSpaPodParser *self, va_list args)
|
|||
if ((optional = (*format == '?')))
|
||||
format++;
|
||||
|
||||
if (!pod || !spa_pod_parser_can_collect (pod, *format)) {
|
||||
if (!pod || !wp_spa_pod_parser_can_collect (pod, *format)) {
|
||||
if (!optional)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue