Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
KMix
Commits
43609ae0
Commit
43609ae0
authored
Sep 04, 2022
by
Hoi Pok Wu
Browse files
fix segfault by guarding mixdevice
parent
7f39c685
Pipeline
#237647
passed with stage
in 1 minute and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/volumefeedback.cpp
View file @
43609ae0
...
...
@@ -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;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment