add sentinel to parser as well

This commit is contained in:
Wim Taymans 2019-07-09 21:16:56 +02:00
parent 9b4b915f25
commit 633c27824f
2 changed files with 2 additions and 2 deletions

View file

@ -295,7 +295,7 @@ static inline int spa_pod_parser_getv(struct spa_pod_parser *parser,
return 0; return 0;
} }
static inline int spa_pod_parser_get(struct spa_pod_parser *parser, static inline SPA_SENTINEL int spa_pod_parser_get(struct spa_pod_parser *parser,
const char *format, ...) const char *format, ...)
{ {
int res; int res;

View file

@ -110,7 +110,7 @@ int main(int argc, char *argv[])
"s", &vs, "s", &vs,
"R", &vr, "R", &vr,
"F", &vfr, "F", &vfr,
"P", &va, 0); "P", &va, NULL);
printf("%u %lu %f %g %s %ux%u %u/%u\n", vi, vl, vf, vd, vs, vr.width, vr.height, vfr.num, printf("%u %lu %f %g %s %ux%u %u/%u\n", vi, vl, vf, vd, vs, vr.width, vr.height, vfr.num,
vfr.denom); vfr.denom);