Commit 43609ae0 authored by Hoi Pok Wu's avatar Hoi Pok Wu
Browse files

fix segfault by guarding mixdevice

parent 7f39c685
Pipeline #237647 passed with stage
in 1 minute and 29 seconds
......@@ -115,6 +115,13 @@ void VolumeFeedback::volumeChanged()
{
const Mixer *m = Mixer::getGlobalMasterMixer(); // current global master
const shared_ptr<MixDevice> md = m->getLocalMasterMD(); // its master device
if (md==nullptr)
{
qCDebug(KMIX_LOG) << "global master doest have a local master MD ( MixDevice )";
m_currentMaster.clear();
return;
}
int newvol = md->userVolumeLevel(); // current volume level
//qCDebug(KMIX_LOG) << m_currentVolume << "->" << newvol;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment