spa: fix initializer for old GCC

Older gcc versions seem to require the members to appear in the
designated initializer in the order they are in the definition of
the struct when compiling C++.

Fixes #1910
This commit is contained in:
Wim Taymans 2021-12-16 11:08:07 +01:00
parent 738cbcf789
commit d2ec680d3d

View file

@ -70,8 +70,11 @@ spa_latency_info_combine_start(struct spa_latency_info *info, enum spa_direction
{
*info = SPA_LATENCY_INFO(direction,
.min_quantum = FLT_MAX,
.max_quantum = 0.0f,
.min_rate = UINT32_MAX,
.min_ns = UINT64_MAX);
.max_rate = 0,
.min_ns = UINT64_MAX,
.max_ns = 0);
}
static inline void
spa_latency_info_combine_finish(struct spa_latency_info *info)