mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
738cbcf789
commit
d2ec680d3d
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue