Bug 106413 - [PATCH] vala: Fix lengths for source/sink port arrays
Summary: [PATCH] vala: Fix lengths for source/sink port arrays
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-05 20:40 UTC by David Hewitt
Modified: 2018-05-07 14:41 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Fix lengths for source/sink port arrays (1.07 KB, patch)
2018-05-05 20:40 UTC, David Hewitt
Details | Splinter Review

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.