Commit 40738c1d authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed crash in tester

parent d15805c1
......@@ -2448,19 +2448,20 @@ void MediaSession::startRecording () {
return;
}
AudioControlInterface * i = d->getStreamsGroup().lookupMainStreamInterface<AudioControlInterface>(SalAudio);
i->startRecording();
if (i != nullptr) i->startRecording();
}
void MediaSession::stopRecording () {
L_D();
AudioControlInterface * i = d->getStreamsGroup().lookupMainStreamInterface<AudioControlInterface>(SalAudio);
i->stopRecording();
if (i != nullptr) i->stopRecording();
}
bool MediaSession::isRecording () {
L_D();
AudioControlInterface * i = d->getStreamsGroup().lookupMainStreamInterface<AudioControlInterface>(SalAudio);
return i->isRecording();
if (i != nullptr) return i->isRecording();
return false;
}
void MediaSession::terminateBecauseOfLostMedia () {
......
Markdown is supported
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