Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
301d9af8
Unverified
Commit
301d9af8
authored
May 17, 2019
by
Sébastien Blin
Browse files
audio: protect recorder_->stop() from null pointer exception
Change-Id: Ibb7ed1c76dafc7368655b0751f94a4b0df6a531d
parent
69ffe0b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/media/audio/opensl/opensllayer.cpp
View file @
301d9af8
...
...
@@ -397,8 +397,10 @@ OpenSLLayer::stopAudioCapture()
{
std
::
lock_guard
<
std
::
mutex
>
lck
(
recMtx
);
recorder_
->
stop
();
recorder_
.
reset
();
if
(
recorder_
)
{
recorder_
->
stop
();
recorder_
.
reset
();
}
}
if
(
recThread
.
joinable
())
{
recCv
.
notify_all
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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