Correctly initialise and compare pa_cvolume structs

Authored by davidedmundson on Dec 19 2016, 5:27 PM.

Description

Correctly initialise and compare pa_cvolume structs

Summary:
Previously m_volume was uninitialised, resulting in a comparison on
garbage data when first run.
By using the proper pulse audio methods we can make sure to initialise
the variable and use a faster compare than memcmp.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D3739

Details

Committed
davidedmundsonDec 19 2016, 10:45 PM
Differential Revision
D3739: Correctly initialise and compare pa_cvolume structs
Parents
R115:117ff0b08dea: Applet: Show device icons and active port name
Branches
Unknown
Tags
Unknown