From d2ec680d3d3e80ffce8df844ce6c0a40df41e37f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 16 Dec 2021 11:08:07 +0100 Subject: [PATCH] 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 --- spa/include/spa/param/latency-utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spa/include/spa/param/latency-utils.h b/spa/include/spa/param/latency-utils.h index 6fe36c1a4..57a682881 100644 --- a/spa/include/spa/param/latency-utils.h +++ b/spa/include/spa/param/latency-utils.h @@ -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)