Commit 1bd7c196 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

Fixes crash thanks to Check if MD (MixDevice) exist on GlobalMaster or not

Because of lack of checking if md is nullptr or not, calling directly
md->playbackVolume() was causing Segment fault.
parent 33e80f14
......@@ -135,6 +135,12 @@ void VolumeFeedback::masterChanged()
}
const shared_ptr<MixDevice> md = globalMaster->getLocalMasterMD();
if (md==nullptr)
{
qCDebug(KMIX_LOG) << "global master doest have a local master MD ( MixDevice )";
m_currentMaster.clear();
return;
}
const Volume &vol = md->playbackVolume();
if (!vol.hasVolume())
{
......
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