SAFE_FINALIZE(mpPulseAudioClient);
SAFE_DELETE(mpPulseAudioClient);
+ internalUnlock();
+
if (mpAudioSessionHandler->getId() >= 0) {
if (isForceIgnore() == false && mpAudioSessionHandler->isSkipSession() == false)
mpAudioSessionHandler->updateStop();
mpAudioSessionHandler->unregisterSound();
}
- internalUnlock();
-
CAudioIO::onStateChanged(CAudioInfo::EAudioIOState::AUDIO_IO_STATE_IDLE);
} catch (CAudioError e) {
internalUnlock();
}
/* When write() is called in PulseAudio callback, bypass a pcm data to CPulseAudioClient (For Asynchronous) */
- if (mpPulseAudioClient->isInThread() == true) {
+ if (mpPulseAudioClient && mpPulseAudioClient->isInThread() == true) {
int ret = mpPulseAudioClient->write(buffer, length);
if (ret < 0) {
THROW_ERROR_MSG_FORMAT(CAudioError::EError::ERROR_INTERNAL_OPERATION,