Bug 106413

Summary: [PATCH] vala: Fix lengths for source/sink port arrays
Product: PulseAudio Reporter: David Hewitt <davidmhewitt>
Component: miscAssignee: pulseaudio-bugs
Status: RESOLVED FIXED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix lengths for source/sink port arrays

Description David Hewitt 2018-05-05 20:40:10 UTC
Created attachment 139376 [details] [review]
Fix lengths for source/sink port arrays

vala assumes that the variable containing the length of an array will be called the same as the array with a "_length" prefix, unless otherwise specified.

So, in this case, in the generated C code, it expected the length of the ports arrays to be in ports_length, which doesn't exist.

This patch sets explicitly where it should find the array lengths.
Comment 1 Tanu Kaskinen 2018-05-07 14:41:06 UTC
Thanks! Applied.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.