Correctly initialise and compare pa_cvolume structs
ClosedPublic

Authored by davidedmundson on Dec 19 2016, 6:22 PM.

Details

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.

Diff Detail

Repository
R115 Plasma Audio Volume Applet
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
davidedmundson retitled this revision from to Correctly initialise and compare pa_cvolume structs.
davidedmundson updated this object.
davidedmundson edited the test plan for this revision. (Show Details)
davidedmundson added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptDec 19 2016, 6:22 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
drosca accepted this revision.Dec 19 2016, 9:33 PM
drosca added a reviewer: drosca.
This revision is now accepted and ready to land.Dec 19 2016, 9:33 PM
This revision was automatically updated to reflect the committed changes.