Deadlock in LinphoneMediaChannel dtor
The LinphoneMediaChannel destructor may deadlock when joining the
thread, since the thread won't exit if it isn't awaken by network traffic
after dying_ is set.
The POSIX thread is replaced with cricket::Thread in this patch, which
seems to solve the deadlock problem.
The patch
Logged In: YES
user_id=141160
This patch fixes a crash bug in the LinphoneMediaChannel
destructor. The crash occurred when terminating a call before it's
accepted.
talk/session/phone/linphonemediaengine.cc 56
- audio_stream_stop(audio_stream_);
+ if (audio_stream_)
+ audio_stream_stop(audio_stream_);
}