fix switch fallthrough cases

This commit is contained in:
Wim Taymans 2019-01-07 15:11:34 +01:00
parent 9573b24e52
commit 7cd55c2c6b
3 changed files with 6 additions and 1 deletions

View file

@ -232,7 +232,7 @@ static inline int spa_pod_parser_getv(struct spa_pod_parser *parser,
return -EINVAL;
if (--parser->depth < 0)
return -EINVAL;
/* fallthrough */
case '}':
it = &parser->iter[parser->depth];
current = spa_pod_iter_current(it);

View file

@ -476,6 +476,7 @@ impl_node_port_enum_params(struct spa_node *node,
SPA_PARAM_LIST_id, &SPA_POD_Id(list[*index]), 0);
else
return 0;
break;
}
case SPA_PARAM_EnumFormat:
if ((res = port_enum_formats(node, direction, port_id, index, &param, &b)) <= 0)